Browse Source

Restrict exception type in trampoline_forwarding_failures (follow-up 017186d107)

master
ThomasV 2 years ago
parent
commit
8630030bd9
  1. 2
      electrum/lnpeer.py

2
electrum/lnpeer.py

@ -2386,7 +2386,7 @@ class Peer(Logger):
forwarding_coro = forwarding_callback()
try:
await forwarding_coro
except Exception as e:
except OnionRoutingFailure as e:
# FIXME: cannot use payment_hash as key
self.lnworker.trampoline_forwarding_failures[payment_hash] = e
finally:

Loading…
Cancel
Save