mirror of
https://github.com/Sneed-Group/pypush-plus-plus
synced 2024-12-23 19:32:29 -06:00
in case any non-response messages were queued
This commit is contained in:
parent
8070f6ad81
commit
83b3562be8
1 changed files with 1 additions and 1 deletions
|
@ -53,7 +53,7 @@ def lookup(
|
||||||
if resp_body is None:
|
if resp_body is None:
|
||||||
return False
|
return False
|
||||||
resp_body = plistlib.loads(resp_body)
|
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
|
# Lambda to check if the response is the one we want
|
||||||
payload = conn.incoming_queue.wait_pop_find(check_response)
|
payload = conn.incoming_queue.wait_pop_find(check_response)
|
||||||
|
|
Loading…
Reference in a new issue