From 092314629853d8e6a01fc3daab8f2903e27d015d Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 1 Aug 2021 16:13:25 +0100 Subject: [PATCH] Check that orderedItems appears in timeline json --- webapp_timeline.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/webapp_timeline.py b/webapp_timeline.py index 3097b5ea8..214911fb8 100644 --- a/webapp_timeline.py +++ b/webapp_timeline.py @@ -737,6 +737,11 @@ def htmlTimeline(cssCache: {}, defaultTimeline: str, # show the posts itemCtr = 0 + if timelineJson: + if not timelineJson.get('orderedItems'): + print('ERROR: no orderedItems in timeline for ' + boxName:) + return '' + if timelineJson: # if this is the media timeline then add an extra gallery container if boxName == 'tlmedia':