Restrict exception type in trampoline_forwarding_failures (follow-up 017186d107)
This commit is contained in:
@@ -2386,7 +2386,7 @@ class Peer(Logger):
|
|||||||
forwarding_coro = forwarding_callback()
|
forwarding_coro = forwarding_callback()
|
||||||
try:
|
try:
|
||||||
await forwarding_coro
|
await forwarding_coro
|
||||||
except Exception as e:
|
except OnionRoutingFailure as e:
|
||||||
# FIXME: cannot use payment_hash as key
|
# FIXME: cannot use payment_hash as key
|
||||||
self.lnworker.trampoline_forwarding_failures[payment_hash] = e
|
self.lnworker.trampoline_forwarding_failures[payment_hash] = e
|
||||||
finally:
|
finally:
|
||||||
|
|||||||
Reference in New Issue
Block a user