Skip to content

Commit

Permalink
upload.py should not always fail
Browse files Browse the repository at this point in the history
fixup #8603, sys.exc_info is a function
  • Loading branch information
mcspr committed Jun 18, 2022
1 parent 0778980 commit 320daa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,5 +70,5 @@
finally:
if erase_file:
os.remove(erase_file)
if sys.exc_info:
if any(sys.exc_info()):
sys.exit(2)

0 comments on commit 320daa9

Please sign in to comment.