Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gas price error dont throw #180

Merged
merged 1 commit into from
Nov 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions faucet/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,8 @@ def get_manager_balance(self):
)

if self.chain_type == NetworkTypes.EVM or int(self.chain_id) == 500:
if self.chain_id == 500:
logging.debug("chain XDC NONEVM is checking its balances")
# if self.chain_id == 500:
# logging.debug("chain XDC NONEVM is checking its balances")
funds = EVMFundManager(self).w3.eth.get_balance(self.fund_manager_address)
return funds

Expand Down Expand Up @@ -326,8 +326,8 @@ def gas_price(self):
from faucet.faucet_manager.fund_manager import EVMFundManager

return EVMFundManager(self).w3.eth.gas_price
except Exception as e:
logging.exception(f"Error getting gas price for {self.chain_name} error is {e}")
except: # noqa: E722
logging.exception(f"Error getting gas price for {self.chain_name}")
return self.max_gas_price + 1

@property
Expand Down