Skip to content

feedparser does not return an error on empty files #461

Description

@dechamps
$ python3 -c 'import feedparser; import pprint; pprint.pp(feedparser.parse("/dev/null"));'
{'bozo': False, 'entries': [], 'feed': {}, 'headers': {}}

This makes it look like /dev/null is a valid feed with no entries, which is clearly not the case - an empty file is not a valid feed. An error should be reported instead (ideally an exception, see #329).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions