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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

adaptive/tests/test_learners.py

Lines changed: 1 addition & 1 deletion
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)