mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 17:55:20 +00:00
lnworker: don't log InvoiceError
lnworker._pay does not need log_exceptions decorator, as we properly await the coroutine
This commit is contained in:
parent
b99add59c3
commit
daef1a8359
2 changed files with 3 additions and 2 deletions
|
@ -892,7 +892,6 @@ class LNWallet(LNWorker):
|
||||||
if chan.short_channel_id == short_channel_id:
|
if chan.short_channel_id == short_channel_id:
|
||||||
return chan
|
return chan
|
||||||
|
|
||||||
@log_exceptions
|
|
||||||
async def _pay(self, invoice, amount_sat=None, attempts=1) -> bool:
|
async def _pay(self, invoice, amount_sat=None, attempts=1) -> bool:
|
||||||
lnaddr = self._check_invoice(invoice, amount_sat)
|
lnaddr = self._check_invoice(invoice, amount_sat)
|
||||||
payment_hash = lnaddr.paymenthash
|
payment_hash = lnaddr.paymenthash
|
||||||
|
|
|
@ -183,7 +183,9 @@ class BitcoinException(Exception): pass
|
||||||
class UserFacingException(Exception):
|
class UserFacingException(Exception):
|
||||||
"""Exception that contains information intended to be shown to the user."""
|
"""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.
|
# Throw this exception to unwind the stack like when an error occurs.
|
||||||
# However unlike other exceptions the user won't be informed.
|
# However unlike other exceptions the user won't be informed.
|
||||||
|
|
Loading…
Add table
Reference in a new issue