Skip to content

Commit 3eba668

Browse files
committed
Fix handling unknown longpoll events
1 parent a30e296 commit 3eba668

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vk_api/longpoll.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ def __init__(self, raw):
346346
self.type = VkEventType(self.raw[0])
347347
self._list_to_attr(self.raw[1:], EVENT_ATTRS_MAPPING[self.type])
348348
except ValueError:
349-
pass
349+
self.type = self.raw[0]
350350

351351
if self.extra_values:
352352
self._dict_to_attr(self.extra_values)

0 commit comments

Comments
 (0)