Skip to content

Flag empty document as bozo with new EmptyDocument exception#575

Open
larkindom wants to merge 1 commit into
kurtmckee:mainfrom
larkindom:flag-empty-document-as-bozo
Open

Flag empty document as bozo with new EmptyDocument exception#575
larkindom wants to merge 1 commit into
kurtmckee:mainfrom
larkindom:flag-empty-document-as-bozo

Conversation

@larkindom

Copy link
Copy Markdown

Adds EmptyDocument to feedparser.exceptions, exports it from feedparser.__init__, and sets bozo/bozo_exception when an empty document is parsed instead of silently returning a valid-looking result. Includes tests and a changelog fragment. Closes #461.

Adds `EmptyDocument` to `feedparser.exceptions`, exports it from
`feedparser.__init__`, and sets `bozo`/`bozo_exception` when an empty
document is parsed instead of silently returning a valid-looking result.
Includes tests and a changelog fragment. Closes kurtmckee#461.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

feedparser does not return an error on empty files

1 participant