Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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

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

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

Conversation

@ShishkaDanil
Copy link

@ShishkaDanil ShishkaDanil commented Nov 16, 2024

...d 'int'"

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

...d 'int'"
Исправлена ошибка в методе _parse_peer_id()
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

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Comments

AltStyle によって変換されたページ (->オリジナル) /