Skip to content

Commit

Permalink
px_uploader.py: remove unused exception vars
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Feb 27, 2017
1 parent 0391574 commit bc5a420
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tools/px_uploader.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down Expand Up @@ -682,7 +682,7 @@ def main():
# print the error
print("\nERROR: %s" % ex.args)

except IOError as e:
except IOError:
up.close()
continue

Expand Down

0 comments on commit bc5a420

Please sign in to comment.