1
0

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

This commit is contained in:
ThomasV
2023-07-21 19:32:38 +02:00
parent 0e5cb19408
commit 8630030bd9

View File

@@ -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: