summaryrefslogtreecommitdiff
path: root/alot/crypto.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-04-24 09:20:22 -0700
committerDylan Baker <dylan@pnwbakers.com>2018-04-24 09:20:22 -0700
commitecb5d076b52089638c85330655cdb9755fd876e6 (patch)
tree5a4ec3d6a4f23b4049da2c0877af138e986c690c /alot/crypto.py
parentbd7a5051e4aefb8ad1a8eea7f7b477d4038fd7de (diff)
parent1708fd59ed2a44bd543d510a4895aa95e30c9af3 (diff)
Merge remote-tracking branch 'bignose/wip/issue/python3-codeclimate' into py3k
One small conflict caused by "db/utils: correctly handle 8bit encoded mail"
Diffstat (limited to 'alot/crypto.py')
-rw-r--r--alot/crypto.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/alot/crypto.py b/alot/crypto.py
index 247dbd19..e7e0bd36 100644
--- a/alot/crypto.py
+++ b/alot/crypto.py
@@ -112,8 +112,9 @@ def get_key(keyid, validate=False, encrypt=False, sign=False,
else:
raise e # pragma: nocover
if signed_only and not check_uid_validity(key, keyid):
- raise GPGProblem('Cannot find a trusworthy key for "{}".'.format(keyid),
- code=GPGCode.NOT_FOUND)
+ raise GPGProblem(
+ 'Cannot find a trusworthy key for "{}".'.format(keyid),
+ code=GPGCode.NOT_FOUND)
return key