[feed.py] not all feeds use titles #3

Closed
opened 2022-01-01 07:35:43 +00:00 by aadil · 1 comment
aadil commented 2022-01-01 07:35:43 +00:00 (Migrated from git.autonomic.zone)

copied over from lumbung-feed-aggregator repo

currently this doesn't handle feed items without title

copied over from [lumbung-feed-aggregator repo](https://git.vvvvvvaria.org/rra/lumbung-feed-aggregator/issues/7) > currently this doesn't handle feed items without title
r commented 2022-01-07 09:58:19 +00:00 (Migrated from git.autonomic.zone)

The feed parser docs recommend assuming that feeds do not return particular elements. So you need to write handlers for each element to gracefully fail.

Here is an example for the Author field:
https://git.autonomic.zone/ruangrupa/lumbunglib/src/branch/master/lumbunglib/feed.py#L58

The feed parser docs recommend assuming that [feeds do not return particular elements](https://feedparser.readthedocs.io/en/latest/basic-existence.html). So you need to write handlers for each element to gracefully fail. Here is an example for the Author field: https://git.autonomic.zone/ruangrupa/lumbunglib/src/branch/master/lumbunglib/feed.py#L58
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: lumbung.space/konfluks#3
No description provided.