Avoid error when feedreader is in debug log mode and RSS entry comes without title and pubDate #16316 10000
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
Under rare circumstance an uncaught error is produced and the affected RSS entry is discarded: when the
feedreader
component is indebug
log mode, and at least one entry in the RSS feed does not contain atitle
and does not contain apubDate
tag.In this case an error like the following is logged (the following comes from a
tox
test run):I amended the RSS fixture for one test case to capture this issue.
Related issue (if applicable): n/a
Pull request in home-assistant.github.io with documentation (if applicable): n/a
Example entry for
configuration.yaml
(if applicable):Checklist:
tox
. Your PR cannot be merged unless tests pass