mirror of
https://github.com/deadc0de6/dotdrop.git
synced 2026-03-24 09:25:07 +00:00
handle config exception
This commit is contained in:
@@ -220,7 +220,11 @@ def header():
|
|||||||
def main():
|
def main():
|
||||||
ret = True
|
ret = True
|
||||||
args = docopt(USAGE, version=VERSION)
|
args = docopt(USAGE, version=VERSION)
|
||||||
|
try:
|
||||||
conf = Cfg(args['--cfg'])
|
conf = Cfg(args['--cfg'])
|
||||||
|
except ValueError as e:
|
||||||
|
LOG.err('error: %s' % (str(e)))
|
||||||
|
return False
|
||||||
|
|
||||||
opts = conf.get_configs()
|
opts = conf.get_configs()
|
||||||
opts['dry'] = args['--dry']
|
opts['dry'] = args['--dry']
|
||||||
|
|||||||
Reference in New Issue
Block a user