From cb17bdb96b6fd253bf496eda58633467c9a41785 Mon Sep 17 00:00:00 2001 From: Popescu V <136721202+popescu-v@users.noreply.github.com> Date: Wed, 18 Dec 2024 15:23:02 +0100 Subject: [PATCH] Raise explicitly from exception --- khiops/sklearn/estimators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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__()