From 1986745c245c4727790e7e61f470e02b14692fd9 Mon Sep 17 00:00:00 2001 From: Ben Hutchings Date: Wed, 29 Apr 2020 00:30:27 +0100 Subject: lorry: Delete unused local variables Found by pyflakes. --- lorry | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lorry') diff --git a/lorry b/lorry index 7505633..09f58cb 100755 --- a/lorry +++ b/lorry @@ -118,7 +118,7 @@ class Lorry(cliapp.Application): self.progress('Getting: %s' % name) try: self.gitify(name, specs[name]) - except Exception as e: + except Exception: status += 1 sys.stderr.write( 'Error mirroring:\n%s' % traceback.format_exc()) @@ -505,7 +505,7 @@ class Lorry(cliapp.Application): urlfile = urllib.request.urlopen(spec['url']) archive_file.write(urlfile.read()) urlfile.close() - except Exception as e: + except Exception: if os.path.exists(archive_dest): os.unlink(archive_dest) raise -- cgit v1.2.1