Skip to content

Commit fa859b9

Browse files
committedMay 28, 2024
Fix bug with exit_code
1 parent cc5f1e0 commit fa859b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎docopt_sh/__main__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def docopt_sh(params):
7777
log.info('%s has been updated.', params['SCRIPT'])
7878
except Exception as e:
7979
log.error(str(e))
80-
sys.exit(e.exit_code)
80+
sys.exit(getattr(e, 'exit_code', 1))
8181

8282

8383
def setup_logging():

0 commit comments

Comments
 (0)