1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-03-22 19:40:07 +00:00

handle config exception

This commit is contained in:
deadc0de6
2017-12-23 20:12:03 +01:00
parent 1edc5543c0
commit b18484ad85

View File

@@ -220,7 +220,11 @@ def header():
def main():
ret = True
args = docopt(USAGE, version=VERSION)
conf = Cfg(args['--cfg'])
try:
conf = Cfg(args['--cfg'])
except ValueError as e:
LOG.err('error: %s' % (str(e)))
return False
opts = conf.get_configs()
opts['dry'] = args['--dry']