Skip to content

Commit 8429ee7

Browse files
committed
prevent ImportError due to scikit-optimize and sklearn incompatibility
See scikit-optimize/scikit-optimize#902 This caused all tests to fail.
1 parent 1c60897 commit 8429ee7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adaptive/tests/test_learners.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929

3030
try:
3131
from adaptive.learner.skopt_learner import SKOptLearner
32-
except ModuleNotFoundError:
32+
except (ModuleNotFoundError, ImportError):
3333
SKOptLearner = None
3434

3535

0 commit comments

Comments
 (0)