Skip to content

Commit 320daa9

Browse files
authored
upload.py should not always fail
fixup #8603, sys.exc_info is a function
1 parent 0778980 commit 320daa9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/upload.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,5 @@
7070
finally:
7171
if erase_file:
7272
os.remove(erase_file)
73-
if sys.exc_info:
73+
if any(sys.exc_info()):
7474
sys.exit(2)

0 commit comments

Comments
 (0)