Skip to content

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

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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()

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants