Skip to content

Commit

Permalink
Fix linter errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
derekpierre committed Feb 20, 2024
1 parent 71b2e0c commit 28c1443
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
8 changes: 2 additions & 6 deletions atxm/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,7 @@ def __handle_active_transaction(self) -> bool:

# Outcome 1: the pending transaction is paused by strategies
if self.__pause:
self.log.warn(
f"[pause] transaction #{pending_tx.id} paused by strategies"
)
self.log.warn(f"[pause] transaction #{pending_tx.id} paused by strategies")
return False

try:
Expand Down Expand Up @@ -378,9 +376,7 @@ def __get_receipt(self, pending_tx: PendingTx) -> Optional[TxReceipt]:
txdata = self.w3.eth.get_transaction(pending_tx.txhash)
pending_tx.data = txdata
except TransactionNotFound:
self.log.error(
f"[error] Transaction {pending_tx.txhash.hex()} not found"
)
self.log.error(f"[error] Transaction {pending_tx.txhash.hex()} not found")
return

receipt = _get_receipt(w3=self.w3, txhash=txdata['hash'])
Expand Down
4 changes: 2 additions & 2 deletions atxm/utils.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import contextlib
from typing import Callable, Optional, Union
from typing import Callable, Optional

from cytoolz import memoize
from twisted.internet import reactor
from web3 import Web3
from web3.exceptions import TransactionNotFound
from web3.types import PendingTx as PendingTxData, TxData, TxParams
from web3.types import TxData, TxParams
from web3.types import RPCError, TxReceipt, Wei

from atxm.exceptions import (
Expand Down

0 comments on commit 28c1443

Please sign in to comment.