Skip to content

fix: "TypeError: '<' not supported between instances of 'NoneType' an…#517

Open
ShishkaDanil wants to merge 1 commit intopython273:masterfrom
ShishkaDanil:patch-2
Open

fix: "TypeError: '<' not supported between instances of 'NoneType' an…#517
ShishkaDanil wants to merge 1 commit intopython273:masterfrom
ShishkaDanil:patch-2

Conversation

@ShishkaDanil
Copy link

…d 'int'"

Исправлена ошибка в методе _parse_peer_id()

…d 'int'"

Исправлена ошибка в методе  _parse_peer_id()
@python273
Copy link
Owner

В каком евенте None? Возможно вызов к self._parse_peer_id() нужно где-то пофиксить

vk_api/vk_api/longpoll.py

Lines 360 to 375 in b657917

if self.type in PARSE_PEER_ID_EVENTS:
self._parse_peer_id()
if self.type in PARSE_MESSAGE_FLAGS_EVENTS:
self._parse_message_flags()
if self.type is VkEventType.CHAT_UPDATE:
self._parse_chat_info()
try:
self.update_type = VkChatEventType(self.type_id)
except ValueError:
self.update_type = self.type_id
elif self.type is VkEventType.NOTIFICATION_SETTINGS_UPDATE:
self._dict_to_attr(self.values)
self._parse_peer_id()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants