Fixed problems when loading newsfeed buffers sometimes in Socializer
This commit is contained in:
parent
357d18fbe0
commit
dca7b4a694
@ -8,6 +8,7 @@
|
|||||||
|
|
||||||
* Fixed an error that was making Socializer unable to attach audio files from the computer, if the file does not include correct ID3 TAGS.
|
* Fixed an error that was making Socializer unable to attach audio files from the computer, if the file does not include correct ID3 TAGS.
|
||||||
* Fixed a traceback that was being logged when attempting to load an image but cancel the dialog for attaching it.
|
* Fixed a traceback that was being logged when attempting to load an image but cancel the dialog for attaching it.
|
||||||
|
* Fixed an error that was making Socializer to fail when loading the newsfeed buffer, thus not loading any other buffers. This error was caused due to VK sending a new object type (undocumented for now) representing push subscriptions. The item is ignored by Socializer so it will not break the newsfeed buffer anymore.
|
||||||
|
|
||||||
### Changes
|
### Changes
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ class vkSession(object):
|
|||||||
if name.endswith("_messages") and show_nextpage == True:
|
if name.endswith("_messages") and show_nextpage == True:
|
||||||
show_nextpage = False
|
show_nextpage = False
|
||||||
for i in data:
|
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,))
|
log.debug("Skipping unsupported item... %r" % (i,))
|
||||||
continue
|
continue
|
||||||
# for some reason, VK sends post data if the post has been deleted already.
|
# for some reason, VK sends post data if the post has been deleted already.
|
||||||
|
Loading…
Reference in New Issue
Block a user