improve config file handling

This commit is contained in:
Chronial committed 2014-02-15 09:59:50 +01:00
1 parent 45239c4c6a
commit 1469243b54
3 files changed
+8

No files matched your search

+5
View File
@@ -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: