From f2cc283617bf18efa1c817c64239984b26c2e2dc Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sat, 6 Oct 2012 09:55:16 -0400 Subject: [PATCH] signature: use proper tag in failed-integer-value-conversion error message. --- pgp_mime/signature.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- 2.26.2