From bc5a4205a19eb81fcd0fbdca090de5b7762349c8 Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Mon, 27 Feb 2017 09:55:59 +0100 Subject: [PATCH] px_uploader.py: remove unused exception vars --- Tools/px_uploader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tools/px_uploader.py b/Tools/px_uploader.py index a3eaea467576..8b872ce738f8 100755 --- a/Tools/px_uploader.py +++ b/Tools/px_uploader.py @@ -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