add missing exception variable

This commit is contained in:
Stuart D. Gathman
2013-04-26 20:47:49 -04:00
parent 188515ddf7
commit f4bbd8af11
+1 -1
View File
@@ -540,7 +540,7 @@ class DKIM(object):
raise KeyFormatError("missing public key: %s"%name) raise KeyFormatError("missing public key: %s"%name)
try: try:
pub = parse_tag_value(s) pub = parse_tag_value(s)
except InvalidTagValueList: except InvalidTagValueList as e:
raise KeyFormatError(e) raise KeyFormatError(e)
try: try:
pk = parse_public_key(base64.b64decode(pub[b'p'])) pk = parse_public_key(base64.b64decode(pub[b'p']))