From e37c8346d098dc0a27fab96303e3eee93b54a4c6 Mon Sep 17 00:00:00 2001 From: pictuga Date: Thu, 22 Apr 2021 21:57:16 +0200 Subject: [PATCH] feeds: add fallback for time parser --- morss/feeds.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/morss/feeds.py b/morss/feeds.py index f25b355..e293951 100644 --- a/morss/feeds.py +++ b/morss/feeds.py @@ -525,6 +525,9 @@ def parse_time(value): elif isinstance(value, datetime): time = value + else: + time = None + # add default time zone if none set if time is not None and time.tzinfo is None: time = time.replace(tzinfo=tz.tzutc())