Skip to content

Commit

Permalink
remove use of old error handling
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiseck3 committed Jan 9, 2025
1 parent 9b33680 commit cb04277
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@

from pydantic import BaseModel, Field

from unstructured_ingest.error import (
SourceConnectionError,
)
from unstructured_ingest.utils.dep_check import requires_dependencies
from unstructured_ingest.v2.errors import (
ProviderError,
Expand Down Expand Up @@ -161,8 +158,7 @@ def precheck(self) -> None:
try:
self.connection_config.get_client()
except Exception as e:
logger.error(f"failed to validate connection: {e}", exc_info=True)
raise SourceConnectionError(f"failed to validate connection: {e}")
raise self.connection_config.wrap_error(e=e)

def get_download_path(self, file_data: FileData) -> Path:
return self.download_config.download_dir / Path(file_data.source_identifiers.relative_path)
Expand Down

0 comments on commit cb04277

Please sign in to comment.