Skip to content

Commit

Permalink
Fix bug with exit_code
Browse files Browse the repository at this point in the history
  • Loading branch information
andsens committed May 28, 2024
1 parent cc5f1e0 commit fa859b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docopt_sh/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def docopt_sh(params):
log.info('%s has been updated.', params['SCRIPT'])
except Exception as e:
log.error(str(e))
sys.exit(e.exit_code)
sys.exit(getattr(e, 'exit_code', 1))


def setup_logging():
Expand Down

0 comments on commit fa859b9

Please sign in to comment.