Skip to content

Commit 5b4c3ec

Browse files
committed
fix naming for an exception
1 parent 3939910 commit 5b4c3ec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/ethereum_spec_tools/evm_tools/loaders/transaction_loader.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
from ethereum_spec_tools.evm_tools.utils import parse_hex_or_int
2323

2424

25-
class UnsupportedTx(Exception):
25+
class UnsupportedTxError(Exception):
2626
"""Exception for unsupported transactions"""
2727

2828
def __init__(self, encoded_params: bytes, error_message: str) -> None:
@@ -203,6 +203,6 @@ def read(self) -> Any:
203203
try:
204204
return tx_cls(*parameters)
205205
except Exception as e:
206-
raise UnsupportedTx(
206+
raise UnsupportedTxError(
207207
tx_byte_prefix + rlp.encode(parameters), str(e)
208208
) from e

src/ethereum_spec_tools/evm_tools/t8n/t8n_types.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
from ethereum.crypto.hash import Hash32, keccak256
1313
from ethereum.utils.hexadecimal import hex_to_bytes, hex_to_u256, hex_to_uint
1414

15-
from ..loaders.transaction_loader import TransactionLoad, UnsupportedTx
15+
from ..loaders.transaction_loader import TransactionLoad, UnsupportedTxError
1616
from ..utils import FatalError, encode_to_hex, secp256k1_sign
1717

1818
if TYPE_CHECKING:
@@ -116,7 +116,7 @@ def __init__(self, t8n: "T8N", stdin: Optional[Dict] = None):
116116
else:
117117
self.transactions.append(self.parse_json_tx(raw_tx))
118118
self.successfully_parsed.append(idx)
119-
except UnsupportedTx as e:
119+
except UnsupportedTxError as e:
120120
self.t8n.logger.warning(
121121
f"Unsupported transaction type {idx}: "
122122
f"{e.error_message}"

0 commit comments

Comments
 (0)