You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Catch the Decode Error Too, at Both Reads That Parse a File
`report` and `registration_problems` each caught JSONDecodeError and
OSError, and a file holding bytes no decoder accepts raises
UnicodeDecodeError before the JSON parser is reached. A partially written
stamp therefore crashed the read-only report with a traceback, which is
what those handlers exist to prevent.
Both catch ValueError now, which covers JSONDecodeError and
UnicodeDecodeError alike, rather than naming the subclass and missing its
sibling.
Two cases added, one per call site, both failing against the previous code.
The settings one is included because the finding named only the stamp and
the same shape was two hundred lines above it.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
0 commit comments