From 3426750abb7aed73ea93733920bf7a35bae61129 Mon Sep 17 00:00:00 2001 From: lifegpc Date: Tue, 19 Jan 2021 19:36:05 +0800 Subject: [PATCH] fix bug --- rsslist.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rsslist.py b/rsslist.py index 6ea465c..8116285 100644 --- a/rsslist.py +++ b/rsslist.py @@ -48,7 +48,7 @@ def getTextContentForRSSInList(rssEntry: RSSEntry, s: settings) -> str: text.addtotext( f"""{rssEntry.title}""") temp = '' - if rssEntry.lasterrortime >= rssEntry.lastupdatetime and rssEntry.errorcount > 0: + if rssEntry.lasterrortime is not None and rssEntry.lasterrortime >= rssEntry.lastupdatetime and rssEntry.errorcount > 0: temp = f'更新间隔:{s._retryTTL[rssEntry.errorcount]}分' else: ttl = 0 if rssEntry.interval is None else rssEntry.interval