diff --git a/src/deepsparse/pipeline.py b/src/deepsparse/pipeline.py index e2a1beeab1..5085344e82 100644 --- a/src/deepsparse/pipeline.py +++ b/src/deepsparse/pipeline.py @@ -139,8 +139,8 @@ def create(cls, task: str, **kwargs) -> "Pipeline": "Pipeline was not created for the given task. The " "provided task should be registered using the OperatorRegistry" ) - except Exception: - _LOGGER.warning(f"Could not create v2 '{task}' pipeline, trying legacy") + except Exception as e: + _LOGGER.warning(f"Could not create v2 '{task}' pipeline, attempting to create the legacy pipeline. Reason: {e}") from deepsparse.legacy import Pipeline pipeline = Pipeline.create(task=task, **kwargs)