Skip to content

Commit 974fb3d

Browse files
Update pipeline.py
Single-line and removed `error` keyword
1 parent fc8330d commit 974fb3d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/deepsparse/pipeline.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -140,8 +140,7 @@ def create(cls, task: str, **kwargs) -> "Pipeline":
140140
"provided task should be registered using the OperatorRegistry"
141141
)
142142
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")
143+
_LOGGER.warning(f"Could not create v2 '{task}' pipeline, attempting to create the legacy pipeline. Reason: {e}")
145144
from deepsparse.legacy import Pipeline
146145

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

0 commit comments

Comments
 (0)