rss will not accept a blank or malformed feed, rather than just ignoring it #116
tdavis6
commented 2024-12-07 09:04:14 -08:00
(Migrated from github.com)
```
CRITICAL:root:Error during email send: 'NoneType' object is not subscriptable
CRITICAL:root:Traceback: Traceback (most recent call last):
File "/app/src/main.py", line 410, in prepare_send_email
rss_string = get_rss_feed() or ""
^^^^^^^^^^^^^^
File "/app/src/main.py", line 356, in get_rss_feed
rss = get_rss(RSS_LINKS, timezone, TIME_SYSTEM)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/src/get_rss.py", line 57, in get_rss
entries = parse_recent_feed(url)
^^^^^^^^^^^^^^^^^^^^^^
File "/app/src/get_rss.py", line 30, in parse_recent_feed
published_time = datetime(*entry.published_parsed[:6], tzinfo=timezone.utc)
~~~~~~~~~~~~~~~~~~~~~~^^^^
TypeError: 'NoneType' object is not subscriptable
```
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
tyler/dailySummaryEmail#116
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?