From eb9dec67e3592bdf83c4d5e0528b5ffb6f6c2ffe Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Aug 2019 18:39:59 +0100 Subject: [PATCH] get --- webinterface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webinterface.py b/webinterface.py index ba0389b9..cd1d0549 100644 --- a/webinterface.py +++ b/webinterface.py @@ -1425,7 +1425,7 @@ def individualPostAsHtml(baseDir: str, \ postDomain=postDomain.split('/',1)[0] titleStr+=' '+postDomain+'' attachmentStr='' - if postJsonObject['object']['attachment']: + if postJsonObject['object'].get('attachment'): if isinstance(postJsonObject['object']['attachment'], list): attachmentCtr=0 attachmentStr+='
'