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:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user