repo: Remove unused variable in 'except'

Change-Id: I90f89ed6638a3d2a9e665ebbedef5dd7902f5429
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/254695
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: David Pursehouse <dpursehouse@collab.net>
This commit is contained in:
David Pursehouse 2020-02-13 08:20:55 +09:00
parent 31b9b4b06c
commit 22dbfb99e5

2
repo
View File

@ -558,7 +558,7 @@ def SetupGnuPG(quiet):
proc = subprocess.Popen(cmd, proc = subprocess.Popen(cmd,
env=env, env=env,
stdin=subprocess.PIPE) stdin=subprocess.PIPE)
except OSError as e: except OSError:
if not quiet: if not quiet:
print('warning: gpg (GnuPG) is not available.', file=sys.stderr) print('warning: gpg (GnuPG) is not available.', file=sys.stderr)
print('warning: Installing it is strongly encouraged.', file=sys.stderr) print('warning: Installing it is strongly encouraged.', file=sys.stderr)