diff options
author | Ruben Pollan <meskio@sindominio.net> | 2015-09-21 23:15:33 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2015-09-21 23:15:33 +0200 |
commit | d5564316c37c4402b3eabb370b4bf27da3c75463 (patch) | |
tree | e6253ea99e58c29e481b127a05c848688c0628f2 /keymanager/src/leap | |
parent | aa02a4603adf7cfe4a414ac83de9a0e82d6088a6 (diff) |
[feat] more verbosity in get_key wrong address log
Diffstat (limited to 'keymanager/src/leap')
-rw-r--r-- | keymanager/src/leap/keymanager/openpgp.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/keymanager/src/leap/keymanager/openpgp.py b/keymanager/src/leap/keymanager/openpgp.py index 794a0ec..b8b47d0 100644 --- a/keymanager/src/leap/keymanager/openpgp.py +++ b/keymanager/src/leap/keymanager/openpgp.py @@ -321,7 +321,9 @@ class OpenPGPScheme(EncryptionScheme): raise errors.KeyNotFound(address) leap_assert( address in doc.content[KEY_ADDRESS_KEY], - 'Wrong address in key data.') + 'Wrong address in key %s. Expected %s, found %s.' + % (doc.content[KEY_ID_KEY], address, + doc.content[KEY_ADDRESS_KEY])) key = build_key_from_dict(OpenPGPKey, doc.content) key._gpgbinary = self._gpgbinary return key |