Skip to content

Commit 9346df5

Browse files
committed
warning
1 parent 3637800 commit 9346df5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/deepsparse/pipeline.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,9 @@ def create(cls, task: str, **kwargs) -> "Pipeline":
139139
"Pipeline was not created for the given task. The "
140140
"provided task should be registered using the OperatorRegistry"
141141
)
142-
except Exception:
143-
_LOGGER.warning(f"Could not create v2 '{task}' pipeline, trying legacy")
142+
except Exception as e:
143+
_LOGGER.warning(f"Could not create v2 '{task}' pipeline, with error: {e}")
144+
_LOGGER.warning(f"Attempting to create the legacy pipeline")
144145
from deepsparse.legacy import Pipeline
145146

146147
pipeline = Pipeline.create(task=task, **kwargs)

0 commit comments

Comments
 (0)