aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
Diffstat (limited to 'Tools')
-rwxr-xr-xTools/px_uploader.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Tools/px_uploader.py b/Tools/px_uploader.py
index f4e317cfa..91ac084ef 100755
--- a/Tools/px_uploader.py
+++ b/Tools/px_uploader.py
@@ -565,8 +565,12 @@ try:
except RuntimeError as ex:
- # print the error
- print("\nERROR: %s" % ex.args)
+ if "not suitable" in ex.args:
+ up.close()
+ continue
+ else:
+ # print the error
+ print("\nERROR: %s" % ex.args)
finally:
# always close the port