summaryrefslogtreecommitdiff
path: root/lorry
diff options
context:
space:
mode:
authorBen Hutchings <ben.hutchings@codethink.co.uk>2020-04-29 00:30:27 +0100
committerBen Hutchings <ben.hutchings@codethink.co.uk>2020-05-29 20:49:55 +0100
commit1986745c245c4727790e7e61f470e02b14692fd9 (patch)
tree21e02c9407c1baad7d1b992ef1d1e4c0c7a8286c /lorry
parent6c2ff9ff07c8fa4c4b4ecd0e40dbb9acc1c516c3 (diff)
downloadlorry-1986745c245c4727790e7e61f470e02b14692fd9.tar.gz
lorry: Delete unused local variables
Found by pyflakes.
Diffstat (limited to 'lorry')
-rwxr-xr-xlorry4
1 files changed, 2 insertions, 2 deletions
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