Raise explicit IOError for the sloppy vibe-coders who apparently can't figure out that you need to set an outbound propagation node before trying to send a propagated message

This commit is contained in:
Mark Qvist 2026-05-06 17:19:16 +02:00
commit 189f5239a0
2 changed files with 7 additions and 10 deletions

View file

@ -18,7 +18,7 @@ class LXMFDeliveryAnnounceHandler:
self.lxmrouter.update_stamp_cost(destination_hash, stamp_cost)
except Exception as e:
RNS.log(f"An error occurred while trying to decode announced stamp cost. The contained exception was: {e}", RNS.LOG_ERROR)
RNS.log(f"Could not decode stamp cost from announce data. The contained exception was: {e}", RNS.LOG_DEBUG)
for lxmessage in self.lxmrouter.pending_outbound:
if destination_hash == lxmessage.destination_hash: