Skip to content

Commit

Permalink
fix which error is suppressed
Browse files Browse the repository at this point in the history
  • Loading branch information
rbiseck3 committed Jul 9, 2024
1 parent 3779e91 commit 92eae3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ def get_metadata(self, path: str) -> DataSourceMetadata:

version = self.fs.checksum(path)
metadata: dict[str, str] = {}
with contextlib.suppress(NotImplementedError):
with contextlib.suppress(AttributeError):
metadata = self.fs.metadata(path)
record_locator = {
"protocol": self.index_config.protocol,
Expand Down
3 changes: 1 addition & 2 deletions unstructured/ingest/v2/processes/connectors/fsspec/s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,7 @@ def get_metadata(self, path: str) -> DataSourceMetadata:
if etag := info.get("ETag"):
version = str(etag).rstrip('"').lstrip('"')
metadata: dict[str, str] = {}
metadata: dict[str, str] = {}
with contextlib.suppress(NotImplementedError):
with contextlib.suppress(AttributeError):
metadata = self.fs.metadata(path)
record_locator = {
"protocol": self.index_config.protocol,
Expand Down

0 comments on commit 92eae3a

Please sign in to comment.