px_uploader.py: remove unused exception vars

This commit is contained in:
Julian Oes 2017-02-27 09:55:59 +01:00 committed by Beat Küng
parent 974a9a0673
commit 12c7421be9
1 changed files with 2 additions and 2 deletions

View File

@ -637,7 +637,7 @@ def main():
# Windows, don't open POSIX ports
if "/" not in port:
up = uploader(port, args.baud_bootloader, baud_flightstack)
except Exception as e:
except Exception:
# open failed, rate-limit our attempts
time.sleep(0.05)
@ -682,7 +682,7 @@ def main():
# print the error
print("\nERROR: %s" % ex.args)
except IOError as e:
except IOError:
up.close()
continue