diff --git a/electrum/lnworker.py b/electrum/lnworker.py index eba1aba59..00ba0aab6 100644 --- a/electrum/lnworker.py +++ b/electrum/lnworker.py @@ -892,7 +892,6 @@ class LNWallet(LNWorker): if chan.short_channel_id == short_channel_id: return chan - @log_exceptions async def _pay(self, invoice, amount_sat=None, attempts=1) -> bool: lnaddr = self._check_invoice(invoice, amount_sat) payment_hash = lnaddr.paymenthash diff --git a/electrum/util.py b/electrum/util.py index fd09c2b1e..d565d0353 100644 --- a/electrum/util.py +++ b/electrum/util.py @@ -183,7 +183,9 @@ class BitcoinException(Exception): pass class UserFacingException(Exception): """Exception that contains information intended to be shown to the user.""" -class InvoiceError(Exception): pass + +class InvoiceError(UserFacingException): pass + # Throw this exception to unwind the stack like when an error occurs. # However unlike other exceptions the user won't be informed.