From 1dbf3ef121f79a0c5b203bc16a239dda19ffbd6e Mon Sep 17 00:00:00 2001 From: Gunnar Aastrand Grimnes Date: Tue, 5 Dec 2023 11:02:18 +0100 Subject: [PATCH] fix missing msg destination in try_locate_tx_by_outcoming_message log messages have no destination --- pytonlib/client.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pytonlib/client.py b/pytonlib/client.py index ef0fec8..de376b7 100644 --- a/pytonlib/client.py +++ b/pytonlib/client.py @@ -732,6 +732,7 @@ async def try_locate_tx_by_outcoming_message(self, source, destination, creation for tx in txses: try: for msg in tx["out_msgs"]: + if not msg["destination"]: continue if detect_address(msg["destination"])["raw_form"] == dest["raw_form"]: if int(msg["created_lt"]) == int(creation_lt): return tx