mirror of
https://github.com/JJTech0130/pypush.git
synced 2025-01-22 11:18:29 +00:00
in case any non-response messages were queued
This commit is contained in:
parent
8070f6ad81
commit
83b3562be8
@ -53,7 +53,7 @@ def lookup(
|
||||
if resp_body is None:
|
||||
return False
|
||||
resp_body = plistlib.loads(resp_body)
|
||||
return resp_body["U"] == msg_id
|
||||
return resp_body.get('U') == msg_id
|
||||
|
||||
# Lambda to check if the response is the one we want
|
||||
payload = conn.incoming_queue.wait_pop_find(check_response)
|
||||
|
Loading…
Reference in New Issue
Block a user