Fixed SystemExit calls from docopt
This commit is contained in:
parent
0e6be3ad08
commit
164fd4c646
1 changed files with 2 additions and 3 deletions
|
|
@ -63,10 +63,9 @@ if __name__ == '__main__':
|
||||||
# Docopt
|
# Docopt
|
||||||
try:
|
try:
|
||||||
args = docopt(DOCSTRING)
|
args = docopt(DOCSTRING)
|
||||||
except SystemExit as err:
|
except SystemExit as sys_exit:
|
||||||
# Catch docopt exits
|
# Catch docopt exits
|
||||||
print(err)
|
exit_script(sys_exit.code)
|
||||||
exit_script()
|
|
||||||
except:
|
except:
|
||||||
major_exception()
|
major_exception()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue