From c21c71667e3077762f414cd0f64353bf3b85f55a Mon Sep 17 00:00:00 2001 From: Jason Schwarzenberger Date: Thu, 5 Nov 2020 16:41:15 +1300 Subject: [PATCH] fix date issue. --- apiserver/feeds/news.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apiserver/feeds/news.py b/apiserver/feeds/news.py index 5602a79..7b2bb91 100644 --- a/apiserver/feeds/news.py +++ b/apiserver/feeds/news.py @@ -153,7 +153,8 @@ class _Base: data = extruct.extract(markup) s = parse_extruct(s, data) - s['date'] = unix(s['date'], tz=self.tz) + if s['date']: + s['date'] = unix(s['date'], tz=self.tz) if 'disqus' in markup: try: