in case any non-response messages were queued

This commit is contained in:
JJTech0130 2023-07-24 16:42:00 -04:00
parent 8070f6ad81
commit 83b3562be8
No known key found for this signature in database
GPG key ID: 23C92EBCCF8F93D6

View file

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