From 8630030bd92ac4468fcbfb71a6c782f89a8e7abd Mon Sep 17 00:00:00 2001 From: ThomasV Date: Fri, 21 Jul 2023 19:32:38 +0200 Subject: [PATCH] Restrict exception type in trampoline_forwarding_failures (follow-up 017186d10771070cd1730027e0bffac15202d120) --- electrum/lnpeer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electrum/lnpeer.py b/electrum/lnpeer.py index 356a2ed1a..39c36a9bb 100644 --- a/electrum/lnpeer.py +++ b/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: