Skip to content

Commit

Permalink
Revert "Fix raise .. from statements"
Browse files Browse the repository at this point in the history
This reverts commit af1107a.
  • Loading branch information
petertdavies authored and SamWilsn committed Sep 4, 2024
1 parent bab15f9 commit 1e9a6e5
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 Exception(
raise e from 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 Exception(
raise e from 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 1e9a6e5

Please sign in to comment.