Skip to content

Commit df8c17a

Browse files
authored
feat(event): ignore exception.
1 parent 1092933 commit df8c17a

File tree

1 file changed

+1
-4
lines changed
  • lagrange/client/server_push

1 file changed

+1
-4
lines changed

lagrange/client/server_push/msg.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,7 @@ async def msg_push_handler(client: "Client", sso: SSOPacket):
101101
return GroupMemberJoinRequest(grp_id=inn.grp_id, uid=inn.uid, invitor_uid=inn.invitor_uid)
102102
elif typ == 0x210: # friend event, 528 / group file upload notice event
103103
if sub_typ == 35: # friend request
104-
try:
105-
pb = PBFriendRequest.decode(pkg.message.buf2)
106-
except KeyError: # 空包wdnmd
107-
return
104+
pb = PBFriendRequest.decode(pkg.message.buf2)
108105
return FriendRequest(
109106
pkg.response_head.from_uin,
110107
pb.info.from_uid,

0 commit comments

Comments
 (0)