signature: use proper tag in failed-integer-value-conversion error message.
authorW. Trevor King <wking@tremily.us>
Sat, 6 Oct 2012 13:55:16 +0000 (09:55 -0400)
committerW. Trevor King <wking@tremily.us>
Sat, 6 Oct 2012 13:55:16 +0000 (09:55 -0400)
pgp_mime/signature.py

index 23a0128071145d4198e27978c308b1d00c331dff..43a03b7129bf8386a63d29ffdf4b02050b733efb 100644 (file)
@@ -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