From c86c1925a4d81faa4e0ad4484a8e3b761e1ca3fe Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sat, 29 Aug 2020 21:11:19 +0100 Subject: [PATCH] Check for none --- webinterface.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/webinterface.py b/webinterface.py index ad6691c2..47912e3e 100644 --- a/webinterface.py +++ b/webinterface.py @@ -3808,6 +3808,9 @@ def individualPostAsHtml(allowDownloads: bool, storeToCache=True) -> str: """ Shows a single post as html """ + if not postJsonObject: + return '' + # benchmark postStartTime = time.time()