From 1e1b9dc79e3c8761a23e75ad1c2eaadd674276ae Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Fri, 10 Jan 2025 12:40:11 +0100 Subject: [PATCH] Fixed missing check for dict entry existence --- RNS/Transport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RNS/Transport.py b/RNS/Transport.py index 10ff5ee..a6b0d6e 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -1397,7 +1397,8 @@ class Transport: now = time.time() if now < announce_entry[1]: RNS.log("Rebroadcasted announce for "+RNS.prettyhexrep(packet.destination_hash)+" has been passed on to another node, no further tries needed", RNS.LOG_DEBUG) - Transport.announce_table.pop(packet.destination_hash) + if packet.destination_hash in Transport.announce_table: + Transport.announce_table.pop(packet.destination_hash) else: received_from = packet.destination_hash