Skip to content

Commit

Permalink
Raise explicitly from exception
Browse files Browse the repository at this point in the history
  • Loading branch information
popescu-v committed Dec 18, 2024
1 parent dd31783 commit cb17bdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions khiops/sklearn/estimators.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,8 @@ def __sklearn_tags__(self):
# pylint: disable=import-outside-toplevel
try:
from sklearn.utils import TransformerTags
except ImportError:
raise NotImplementedError("__sklearn_tags__ API unsupported.")
except ImportError as exc:
raise NotImplementedError("__sklearn_tags__ API unsupported.") from exc

# Set the tags from _more_tags
tags = super().__sklearn_tags__()
Expand Down

0 comments on commit cb17bdb

Please sign in to comment.