Exception needs message string.
This commit is contained in:
parent
3a5d8d4222
commit
8493602411
|
@ -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:
|
||||
|
|
Reference in New Issue