From 9925b986b3081d33722d9fa7fd2a53b18596bb6a Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 1 Dec 2019 18:03:14 +0000 Subject: [PATCH] Check for dict --- like.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/like.py b/like.py index e834b0eb..0bb1773d 100644 --- a/like.py +++ b/like.py @@ -128,6 +128,8 @@ def updateLikesCollection(recentPostsCache: {}, \ pprint(postJsonObject) print('DEBUG: post '+objectUrl+' has no object') return + if not isinstance(postJsonObject['object'], dict): + return if not objectUrl.endswith('/likes'): objectUrl=objectUrl+'/likes' if not postJsonObject['object'].get('likes'):