diff --git a/connectorx-python/connectorx/__init__.py b/connectorx-python/connectorx/__init__.py index e49f5d400..1dd7178a5 100644 --- a/connectorx-python/connectorx/__init__.py +++ b/connectorx-python/connectorx/__init__.py @@ -483,7 +483,10 @@ def try_import_module(name: str): try: return importlib.import_module(name) except ModuleNotFoundError: - raise ValueError(f"You need to install {name.split('.')[0]} first") + raise ModuleNotFoundError( + f"You need to install the '{name.split('.')[0]}' module first " + "before trying to import it" + ) _ServerBackendT = TypeVar(