Skip to content

Commit 19c1b97

Browse files
committed
refactor: use ImportError instead of ModuleNotFoundError
1 parent 8e70cea commit 19c1b97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

eth/precompiles/blake2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
try:
1414
from blake2b import compress as blake2b_compress
15-
except ModuleNotFoundError:
15+
except ImportError:
1616
from eth._utils.blake2.compression import blake2b_compress
1717

1818
GAS_COST_PER_ROUND = 1

0 commit comments

Comments
 (0)