From 19a9c305ce13e1ebe57473b7c89fccf7883d229e Mon Sep 17 00:00:00 2001 From: Manuel Cortez Date: Tue, 6 Aug 2019 08:41:26 -0500 Subject: [PATCH] Added more type fixes --- src/sessionmanager/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sessionmanager/session.py b/src/sessionmanager/session.py index 229e1c0..8f56eb1 100644 --- a/src/sessionmanager/session.py +++ b/src/sessionmanager/session.py @@ -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 not isinstance(i["type"], bool) 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 (i["type"] == "wall_photo" or i["type"] == "photo_tag" or i["type"] == "photo" or i["type"] == False or i["type"] == True): log.debug("Skipping unsupported item... %r" % (i,)) continue # for some reason, VK sends post data if the post has been deleted already.