improve config file handling
This commit is contained in:
1 parent
45239c4c6a
commit
1469243b54
3 files changed
+8
No files matched your search
@@ -165,6 +165,11 @@ def main():
|
||||
help="Configuration file (default %(default)s)")
|
||||
args = parser.parse_args()
|
||||
|
||||
if not os.path.exists(args.conf):
|
||||
print("snapraid-runner configuration file not found")
|
||||
args.print_help()
|
||||
sys.exit(2)
|
||||
|
||||
try:
|
||||
load_config(args.conf)
|
||||
except:
|
||||
|
||||
Reference in new issue
Block a user