Skip to content

Commit

Permalink
Merge pull request #195 from UnitapApp/fix/admin-bug
Browse files Browse the repository at this point in the history
remove Exception
  • Loading branch information
Mohamad Bastin authored Nov 22, 2023
2 parents e75be85 + 9f86f99 commit 4bfba9c
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 4bfba9c

Please sign in to comment.