Skip to content

Commit

Permalink
raise exception
Browse files Browse the repository at this point in the history
  • Loading branch information
mnazzaro committed May 17, 2024
1 parent dcd2011 commit fe3222a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arxiv/files/object_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,8 +129,8 @@ def list(self, prefix: str) -> Iterator[FileObj]:
"""
try:
return self.bucket.client.list_blobs(self.bucket, prefix=prefix) # type: ignore
except:
return iter([])
except Exception as e:
raise RuntimeError (f'.list failed on gs://{self.bucket.name}/{prefix}') from e

def status(self) -> Tuple[Literal["GOOD", "BAD"], str]:
"""Gets if bucket can be read."""
Expand Down

0 comments on commit fe3222a

Please sign in to comment.