Skip to content

Commit

Permalink
Update arrow.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lhoestq authored Jan 9, 2025
1 parent 2826a04 commit 0561f42
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datasets/packaged_modules/arrow/arrow.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def _split_generators(self, dl_manager):
with open(file, "rb") as f:
try:
reader = pa.ipc.open_stream(f)
except pa.lib.ArrowInvalid:
except (OSError, pa.lib.ArrowInvalid):
reader = pa.ipc.open_file(f)
self.info.features = datasets.Features.from_arrow_schema(reader.schema)
break
Expand Down

0 comments on commit 0561f42

Please sign in to comment.