Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored and jordanrfrazier committed Feb 19, 2025
1 parent 1ad1770 commit 5560b0c
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/backend/base/langflow/components/nvidia/nvidia_ingest.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ class NVIDIAIngestComponent(Component):
file_types = list(EXTENSION_TO_DOCUMENT_TYPE.keys())
supported_file_types_info = f"Supported file types: {', '.join(file_types)}"
except ImportError:
msg = "NVIDIA Ingest dependencies missing. " \
"Please install them using your package manager. (e.g. uv sync --extra nv-ingest)"
msg = (
"NVIDIA Ingest dependencies missing. "
"Please install them using your package manager. (e.g. uv sync --extra nv-ingest)"
)
logger.warning(msg)
file_types = [msg]
supported_file_types_info = msg
Expand Down Expand Up @@ -122,8 +124,10 @@ def load_file(self) -> list[Data]:
try:
from nv_ingest_client.client import Ingestor
except ImportError as e:
msg = "NVIDIA Ingest dependencies missing. " \
"Please install them using your package manager. (e.g. uv sync --extra nv-ingest)"
msg = (
"NVIDIA Ingest dependencies missing. "
"Please install them using your package manager. (e.g. uv sync --extra nv-ingest)"
)
raise ImportError(msg) from e

if not self.path:
Expand Down

0 comments on commit 5560b0c

Please sign in to comment.