prevent ImportError due to scikit-optimize and sklearn incompatibility
Bas Nijholt authored on 20/05/2020 10:44:03 • GitHub committed on 20/05/2020 10:44:03... | ... |
@@ -29,7 +29,8 @@ from adaptive.runner import simple |
29 | 29 |
|
30 | 30 |
try: |
31 | 31 |
from adaptive.learner.skopt_learner import SKOptLearner |
32 |
-except ModuleNotFoundError: |
|
32 |
+except (ModuleNotFoundError, ImportError): |
|
33 |
+ # XXX: catch the ImportError because of https://github.com/scikit-optimize/scikit-optimize/issues/902 |
|
33 | 34 |
SKOptLearner = None |
34 | 35 |
|
35 | 36 |
|