From 9f86f99f0bbbf27559857cb4dd76cecc02d231c9 Mon Sep 17 00:00:00 2001 From: Mohamad Bastin Date: Wed, 22 Nov 2023 10:59:51 +0100 Subject: [PATCH] remove Exception --- faucet/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/faucet/models.py b/faucet/models.py index 571dab77..178f15ac 100644 --- a/faucet/models.py +++ b/faucet/models.py @@ -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: