From: W. Trevor King Date: Sat, 6 Oct 2012 13:55:16 +0000 (-0400) Subject: signature: use proper tag in failed-integer-value-conversion error message. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f2cc283617bf18efa1c817c64239984b26c2e2dc;p=pgp-mime.git signature: use proper tag in failed-integer-value-conversion error message. --- diff --git a/pgp_mime/signature.py b/pgp_mime/signature.py index 23a0128..43a03b7 100644 --- a/pgp_mime/signature.py +++ b/pgp_mime/signature.py @@ -374,7 +374,8 @@ def verify_result_signatures(result): 'hash-algo']: value = child.get('value') if not value.startswith('0x'): - raise NotImplementedError('summary value {}'.format(value)) + raise NotImplementedError('{} value {}'.format( + child.tag, value)) value = int(value, 16) if attribute in ['wrong_key_usage', 'chain_model']: value = bool(value) # boolean