Skip to content

Commit

Permalink
Fix raise .. from statements
Browse files Browse the repository at this point in the history
  • Loading branch information
petertdavies committed Aug 21, 2024
1 parent f32372a commit af1107a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ethereum_optimized/fork.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@
import ethash
except ImportError as e:
# Add a message, but keep it an ImportError.
raise e from Exception(
raise Exception(
"Install with `pip install 'ethereum[optimized]'` to enable this "
"package"
)
) from e

Header_ = Any

Expand Down
4 changes: 2 additions & 2 deletions src/ethereum_optimized/state_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@
import rust_pyspec_glue
except ImportError as e:
# Add a message, but keep it an ImportError.
raise e from Exception(
raise Exception(
"Install with `pip install 'ethereum[optimized]'` to enable this "
"package"
)
) from e

from ethereum.base_types import U256, Bytes, Bytes20, Uint
from ethereum.crypto.hash import Hash32
Expand Down

0 comments on commit af1107a

Please sign in to comment.