Skip to content

Commit

Permalink
remove Exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamad Bastin committed Nov 22, 2023
1 parent e75be85 commit 9f86f99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions faucet/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ def address(self):
try:
node = Bip44.FromPrivateKey(binascii.unhexlify(self.private_key), Bip44Coins.ETHEREUM)
return node.PublicKey().ToAddress()
except Exception:
except: # noqa: E722 #dont change this, somehow it creates a bug if changed to Exception
try:
keypair = Keypair.from_base58_string(self.private_key)
return str(keypair.pubkey())
except Exception:
except: # noqa: E722 #dont change this, somehow it creates a bug if changed to Exception
pass

def __str__(self) -> str:
Expand Down

0 comments on commit 9f86f99

Please sign in to comment.