diff options
author | 2015-05-30 16:13:46 -0700 | |
---|---|---|
committer | 2015-05-30 21:46:31 -0700 | |
commit | 666b8a6c00251b0034d5e57ee338a44aa6b0a997 (patch) | |
tree | a08069c59edcd4ca2c012c4798ea064bd0a76d40 | |
parent | gkeys/actions.py: Seed handling fixes (diff) | |
download | gentoo-keys-666b8a6c00251b0034d5e57ee338a44aa6b0a997.tar.gz gentoo-keys-666b8a6c00251b0034d5e57ee338a44aa6b0a997.tar.bz2 gentoo-keys-666b8a6c00251b0034d5e57ee338a44aa6b0a997.zip |
gkeys/actions.py: Fix an UnboundLocalError
File "/usr/lib64/python2.7/site-packages/gkeys/actions.py", line 798, in _verify
results = self.gpg.verify_file(key, sig_path, filepath)
UnboundLocalError: local variable 'sig_path' referenced before assignment
Reported by: Johannes Huber <johu@gentoo.org>
-rw-r--r-- | gkeys/gkeys/actions.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gkeys/gkeys/actions.py b/gkeys/gkeys/actions.py index d467500..24c323e 100644 --- a/gkeys/gkeys/actions.py +++ b/gkeys/gkeys/actions.py @@ -734,6 +734,7 @@ class Actions(object): "not supplied, using current directory ./%s") % filepath) if args.timestamp: timestamp_path = filepath + ".timestamp" + sig_path = None if isurl: from sslfetch.connections import Connector connector_output = { |