Update fi.js (#2963)

This commit is contained in:
tlindi
2025-02-14 19:44:08 +02:00
committed by GitHub
parent 0912d7d1c8
commit e318f7679e
4 changed files with 206 additions and 105 deletions
+3 -1
View File
@@ -1,4 +1,5 @@
import json
import ssl
from http import HTTPStatus
from math import ceil
from typing import List, Optional
@@ -351,7 +352,8 @@ async def api_payments_pay_lnurl(
if r.is_error:
raise httpx.ConnectError("LNURL callback connection error")
r.raise_for_status()
except (httpx.ConnectError, httpx.RequestError) as exc:
except (httpx.HTTPError, ssl.SSLError) as exc:
logger.warning(exc)
raise HTTPException(
status_code=HTTPStatus.BAD_REQUEST,
detail=f"Failed to connect to {domain}.",