diff --git a/khiops/sklearn/estimators.py b/khiops/sklearn/estimators.py index 47bfc16b..79176f3a 100644 --- a/khiops/sklearn/estimators.py +++ b/khiops/sklearn/estimators.py @@ -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__()