diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2017-08-22 15:31:01 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2017-08-22 15:31:01 -0700 |
commit | f26e1ff1c3d7a99ce0534e9ecebbf900b31825f7 (patch) | |
tree | ef3648c7f697fe4bbb351b892829e771b2c2279d /alot/crypto.py | |
parent | 44b7929eadece0130d850b5bd040884a46ba48e5 (diff) |
crypto: Don't cover the raise if other exception case
Diffstat (limited to 'alot/crypto.py')
-rw-r--r-- | alot/crypto.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/crypto.py b/alot/crypto.py index f2526c36..f3dd6d11 100644 --- a/alot/crypto.py +++ b/alot/crypto.py @@ -111,7 +111,7 @@ def get_key(keyid, validate=False, encrypt=False, sign=False, 'Can not find usable key for "{}".'.format(keyid), code=GPGCode.NOT_FOUND) else: - raise e + 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) |