mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-01 18:56:41 +00:00
raise instance, not class
This commit is contained in:
parent
29d2e32cb0
commit
2c5cbbb095
@ -132,7 +132,7 @@ def verify_signature(public_key, alleged_signature, data):
|
|||||||
hashes.SHA256(),
|
hashes.SHA256(),
|
||||||
)
|
)
|
||||||
except InvalidSignature:
|
except InvalidSignature:
|
||||||
raise BadSignature
|
raise BadSignature()
|
||||||
|
|
||||||
|
|
||||||
def _validate_public_key(public_key):
|
def _validate_public_key(public_key):
|
||||||
|
Loading…
Reference in New Issue
Block a user