Skip to content

Commit

Permalink
Ensure we set a return code if an exception is thrown
Browse files Browse the repository at this point in the history
  • Loading branch information
jgraham committed Apr 21, 2017
1 parent 5e89d99 commit f7f7921
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion check_stability.py
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,8 @@ def main():
try:
retcode = main()
except:
raise
import traceback
traceback.print_exc()
sys.exit(1)
else:
sys.exit(retcode)

0 comments on commit f7f7921

Please sign in to comment.