Fixed problems when loading newsfeed buffers sometimes in Socializer

This commit is contained in:
2019-07-27 12:45:03 -05:00
parent 357d18fbe0
commit dca7b4a694
2 changed files with 2 additions and 1 deletions

View File

@@ -71,7 +71,7 @@ class vkSession(object):
if name.endswith("_messages") and show_nextpage == True:
show_nextpage = False
for i in data:
if "type" in i and not isinstance(i["type"], int) and (i["type"] == "wall_photo" or i["type"] == "photo_tag" or i["type"] == "photo"):
if "type" in i and not isinstance(i["type"], int) and not isinstance(i["type"], bool) and (i["type"] == "wall_photo" or i["type"] == "photo_tag" or i["type"] == "photo"):
log.debug("Skipping unsupported item... %r" % (i,))
continue
# for some reason, VK sends post data if the post has been deleted already.