fix: do not loose error, log it

This commit is contained in:
Vlad Stan 2022-12-21 14:56:27 +02:00
parent 81df5a56e2
commit b68b8a0292

View File

@ -214,7 +214,8 @@ async def api_payments_create_invoice(data: CreateInvoiceData, wallet: Wallet):
lnurl_response = resp["reason"]
else:
lnurl_response = True
except (httpx.ConnectError, httpx.RequestError):
except (httpx.ConnectError, httpx.RequestError) as ex:
logger.error(ex)
lnurl_response = False
return {