Skip to content

Commit

Permalink
catch generic exception
Browse files Browse the repository at this point in the history
  • Loading branch information
duelingbenjos committed May 12, 2024
1 parent 675d02f commit 982ccce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion contracting/stdlib/bridge/crypto.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def verify(vk: str, msg: str, signature: str):
vk = nacl.signing.VerifyKey(vk)
try:
vk.verify(msg, signature)
except nacl.exceptions.BadSignatureError:
except Exception as e:
return False
return True

Expand Down

0 comments on commit 982ccce

Please sign in to comment.