Skip to content

Commit

Permalink
chore: fix linting issues E722 (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
b00f authored Oct 6, 2024
1 parent 0302d75 commit ca9bd18
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pactus/crypto/ed25519/public_key.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import hashlib

from cryptography.exceptions import InvalidSignature
from cryptography.hazmat.primitives.asymmetric import ed25519
from ripemd.ripemd160 import ripemd160

Expand Down Expand Up @@ -56,7 +57,7 @@ def account_address(self) -> Address:
def verify(self, msg: bytes, sig: Signature) -> bool:
try:
self.pub.verify(sig.raw_bytes(), msg)
except:
except InvalidSignature:
return False
else:
return True
2 changes: 0 additions & 2 deletions pactus/crypto/ed25519/ruff.toml

This file was deleted.

0 comments on commit ca9bd18

Please sign in to comment.