Skip to content

Commit

Permalink
Fix handling unknown longpoll events
Browse files Browse the repository at this point in the history
  • Loading branch information
python273 committed Oct 19, 2018
1 parent a30e296 commit 3eba668
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vk_api/longpoll.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ def __init__(self, raw):
self.type = VkEventType(self.raw[0])
self._list_to_attr(self.raw[1:], EVENT_ATTRS_MAPPING[self.type])
except ValueError:
pass
self.type = self.raw[0]

if self.extra_values:
self._dict_to_attr(self.extra_values)
Expand Down

0 comments on commit 3eba668

Please sign in to comment.