Skip to content

Commit

Permalink
SystemExit are ignored
Browse files Browse the repository at this point in the history
  • Loading branch information
rnt committed Jan 4, 2018
1 parent cab7a43 commit 5c4c30c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docker_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,8 @@ def main():
if __name__ == '__main__':
try:
main()
except SystemExit:
pass
except BaseException as exc:
EXC_TYPE, _, EXC_TRACEBACK = sys.exc_info()
FNAME = os.path.split(EXC_TRACEBACK.tb_frame.f_code.co_filename)[1]
Expand Down

0 comments on commit 5c4c30c

Please sign in to comment.