try:
sign_with_key = gpgme_ctx.get_key(sign_with_key_fp)
- except:
+ except gpgme.GpgmeError:
error("unable to load signing key. is the gnupghome "
+ "and signing key properly set in the edward_config.py?")
exit(1)
encrypt_to_key = gpgme_ctx.get_key(replyinfo_obj.target_key)
return encrypt_to_key
- except:
+ except gpgme.GpgmeError:
pass
# no available key to use
try:
sigs = gpgme_ctx.verify(block_b, None, plain_b)
- except:
+ except gpgme.GpgmeError:
return ("",[])
plaintext = plain_b.getvalue().decode('utf-8')
try:
sigs = gpgme_ctx.decrypt_verify(block_b, plain_b)
- except:
+ except gpgme.GpgmeError:
return ("",[])
plaintext = plain_b.getvalue().decode('utf-8')