We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cc5f1e0 commit fa859b9Copy full SHA for fa859b9
docopt_sh/__main__.py
@@ -77,7 +77,7 @@ def docopt_sh(params):
77
log.info('%s has been updated.', params['SCRIPT'])
78
except Exception as e:
79
log.error(str(e))
80
- sys.exit(e.exit_code)
+ sys.exit(getattr(e, 'exit_code', 1))
81
82
83
def setup_logging():
0 commit comments