Skip to content

Commit 849e92d

Browse files
committed
Sometimes a documents lc_sent_date is None; don't let the last-call feed break if that happens.
- Legacy-Id: 1685
1 parent c6a9838 commit 849e92d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ietf/idtracker/feeds.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,5 @@ def items(self):
5959
def item_pubdate(self, item):
6060
# this method needs to return a datetime instance, even
6161
# though the database has only date, not time
62-
return datetime.datetime.combine(item.document().lc_sent_date, datetime.time(0,0,0))
62+
return datetime.datetime.combine((item.document().lc_sent_date or datetime.datetime.now().date()), datetime.time(0,0,0))
6363

0 commit comments

Comments
 (0)