1
0

Merge pull request #10210 from f321x/swap_cb

lnwatcher: catch callback exceptions
This commit is contained in:
ThomasV
2025-09-08 14:58:19 +02:00
committed by GitHub

View File

@@ -56,7 +56,10 @@ class LNWatcher(Logger, EventListener):
self.logger.info("synchronizer not set yet")
return
for address, callback in list(self.callbacks.items()):
await callback()
try:
await callback()
except Exception:
self.logger.exception(f"LNWatcher callback failed {address=}")
# send callback to GUI
util.trigger_callback('wallet_updated', self.lnworker.wallet)