Fixed SystemExit calls from docopt

This commit is contained in:
2Shirt 2019-04-14 18:09:36 -07:00
parent 0e6be3ad08
commit 164fd4c646
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C

View file

@ -63,10 +63,9 @@ if __name__ == '__main__':
# Docopt
try:
args = docopt(DOCSTRING)
except SystemExit as err:
except SystemExit as sys_exit:
# Catch docopt exits
print(err)
exit_script()
exit_script(sys_exit.code)
except:
major_exception()