Exception needs message string.

This commit is contained in:
Roland Hedberg 2015-01-10 10:15:40 +01:00
parent 3a5d8d4222
commit 8493602411
1 changed files with 1 additions and 1 deletions

View File

@ -532,7 +532,7 @@ class Message(object):
if "alg" in header and header["alg"] != "none":
if not key:
raise MissingSigningKey()
raise MissingSigningKey("alg=%s" % header["alg"])
_jws.verify_compact(txt, key)
except Exception: