raise instance, not class

This commit is contained in:
meejah 2019-06-24 16:47:00 -06:00
parent 29d2e32cb0
commit 2c5cbbb095

View File

@ -132,7 +132,7 @@ def verify_signature(public_key, alleged_signature, data):
hashes.SHA256(),
)
except InvalidSignature:
raise BadSignature
raise BadSignature()
def _validate_public_key(public_key):