Skip to content

Let globato.read() take ignore_failures - #274

Merged
mmacferrin merged 1 commit into
mainfrom
fix/read-ignore-failures
Oct 9, 2026
Merged

mmacferrin merged 1 commit into
mainfrom
fix/read-ignore-failures

Conversation

@mmacferrin

Copy link
Copy Markdown
Contributor

Adds an ignore_failures parameter to globato.read(), passed through GlobatoStream to fetchez's BaseStream. read() had no way to set it: its **kwargs go to the modules, and GlobatoStream didn't pass it on.

With fetchez #472, an error a reader raises while the stream is read, such as AuxiliaryDataError, is raised to the code iterating the stream when ignore_failures is off, the default. read(ignore_failures=True) keeps the earlier behavior: the error is logged and the stream ends early.

The new test covers read(ignore_failures=True) on a file its reader can't open, which ends the stream without raising. It passes with any fetchez release, since CI installs fetchez from PyPI.

@mmacferrin
mmacferrin requested a review from matth-love October 9, 2026 02:42
@mmacferrin
mmacferrin merged commit 2ebced3 into main Oct 9, 2026
4 checks passed
@mmacferrin
mmacferrin deleted the fix/read-ignore-failures branch October 9, 2026 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants