diff options
author | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2020-04-29 00:30:27 +0100 |
---|---|---|
committer | Ben Hutchings <ben.hutchings@codethink.co.uk> | 2020-05-29 20:49:55 +0100 |
commit | 1986745c245c4727790e7e61f470e02b14692fd9 (patch) | |
tree | 21e02c9407c1baad7d1b992ef1d1e4c0c7a8286c /lorry | |
parent | 6c2ff9ff07c8fa4c4b4ecd0e40dbb9acc1c516c3 (diff) | |
download | lorry-1986745c245c4727790e7e61f470e02b14692fd9.tar.gz |
lorry: Delete unused local variables
Found by pyflakes.
Diffstat (limited to 'lorry')
-rwxr-xr-x | lorry | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 |