fixing bug in gpg signing

This commit is contained in:
brent s. 2017-05-06 06:53:28 -04:00
parent 6f3a0f6b86
commit 676265b2aa

View File

@ -52,13 +52,13 @@ def genGPG(conf):
s)) s))
if mykey: if mykey:
try: try:
privkey = gpg.get_key(mykey, True) pkeys.append(gpg.get_key(mykey, True))
except: except:
exit('{0}: ERROR: You specified using {1} but we have no secret key for that ID!'.format( exit('{0}: ERROR: You specified using {1} but we have no secret key for that ID!'.format(
datetime.datetime.now(), datetime.datetime.now(),
mykey)) mykey))
else: else:
for key in gpg.keylist(None,True): for key in gpg.keylist(None, True):
if key.can_sign: if key.can_sign:
pkeys.append(key) pkeys.append(key)
break break