From 534bb28900c0b16622e8fed423fad0d998eae970 Mon Sep 17 00:00:00 2001 From: Mark Qvist Date: Sun, 5 Sep 2021 20:05:12 +0200 Subject: [PATCH] Fixed removal of non-existing receipts. --- RNS/Transport.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/RNS/Transport.py b/RNS/Transport.py index 07559b6..5429cab 100755 --- a/RNS/Transport.py +++ b/RNS/Transport.py @@ -893,7 +893,8 @@ class Transport: receipt_validated = receipt.validate_proof_packet(packet) if receipt_validated: - Transport.receipts.remove(receipt) + if receipt in Transport.receipts: + Transport.receipts.remove(receipt) Transport.jobs_locked = False