mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-01 00:45:52 +00:00
raise instance, not class
This commit is contained in:
parent
de94a0fd3e
commit
e5b892d700
@ -181,7 +181,7 @@ def verify_signature(public_key, alleged_signature, data):
|
||||
try:
|
||||
public_key.verify(alleged_signature, data)
|
||||
except InvalidSignature:
|
||||
raise BadSignature
|
||||
raise BadSignature()
|
||||
|
||||
|
||||
def verifying_key_from_string(public_key_str):
|
||||
|
Loading…
x
Reference in New Issue
Block a user