From 309fd923bdbd893f837bb34afc0b19f273f507ab Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 6 Nov 2020 13:51:57 +0000 Subject: [PATCH] Check that tags are dicts --- webinterface.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/webinterface.py b/webinterface.py index 6528b6a6..435efeb3 100644 --- a/webinterface.py +++ b/webinterface.py @@ -5588,6 +5588,8 @@ def individualPostAsHtml(allowDownloads: bool, if boxName == 'tlblog': if postJsonObject['object'].get('tag'): for tagJson in postJsonObject['object']['tag']: + if not isinstance(tagJson, dict): + continue if not tagJson.get('type'): continue if tagJson['type'] != 'Article':