Skip to content

Commit

Permalink
Merge pull request #278 from python-adaptive/skopt-importerror
Browse files Browse the repository at this point in the history
prevent ImportError due to scikit-optimize and sklearn incompatibility
  • Loading branch information
basnijholt authored May 20, 2020
2 parents 1c60897 + c70b3ac commit 06a084c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion adaptive/tests/test_learners.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@

try:
from adaptive.learner.skopt_learner import SKOptLearner
except ModuleNotFoundError:
except (ModuleNotFoundError, ImportError):
# XXX: catch the ImportError because of https://github.com/scikit-optimize/scikit-optimize/issues/902
SKOptLearner = None


Expand Down

0 comments on commit 06a084c

Please sign in to comment.