Skip to content

Commit dbd81c3

Browse files
committed
Use ImportError instead of ModuleNotFoundError
1 parent efe4a44 commit dbd81c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adaptive/runner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
try:
3131
from typing import TypeAlias
32-
except ModuleNotFoundError:
32+
except ImportError:
3333
# Python <3.10
3434
from typing_extensions import TypeAlias
3535

0 commit comments

Comments
 (0)