Skip to content

Commit 177ce1b

Browse files
committed
more pylint fixes
1 parent ded7b6a commit 177ce1b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/apis/web3api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def get_transaction(self, tx_hash: str) -> Optional[TxData]:
111111
"""
112112
try:
113113
transaction = self.web_3.eth.get_transaction(HexStr(tx_hash))
114-
except Exception as err:
114+
except Exception as err: # pylint: disable=W0718
115115
self.logger.warning(f"Error while fetching transaction: {err}")
116116
transaction = None
117117
return transaction

src/monitoring_tests/cost_coverage_zero_signed_fee.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ def cost_coverage(self, competition_data: dict[str, Any], gas_cost: float) -> bo
3535
"""
3636

3737
solution = competition_data["solutions"][-1]
38-
tx_hash = competition_data["transactionHash"]
3938
ucp = solution["clearingPrices"]
4039
orders = solution["orders"]
4140
native_prices = competition_data["auction"]["prices"]
@@ -68,8 +67,9 @@ def cost_coverage(self, competition_data: dict[str, Any], gas_cost: float) -> bo
6867
total_fee += fee
6968
diff = total_fee - gas_cost
7069
if diff > 0.002 or diff < -0.001:
71-
log_msg = f'"Fees - gasCost" is {diff} for {tx_hash}: '
72-
self.logger.info(log_msg)
70+
self.logger.info(
71+
f'"Fees - gasCost" is {diff} for {competition_data["transactionHash"]}.'
72+
)
7373
return True
7474

7575
def run(self, tx_hash: str) -> bool:

0 commit comments

Comments
 (0)