lnadress, fixes for vlad :)
This commit is contained in:
parent
9f6dc18be7
commit
538f44e6f0
1 changed files with 2 additions and 0 deletions
|
|
@ -2,6 +2,7 @@ from http import HTTPStatus
|
||||||
from urllib.parse import urlparse
|
from urllib.parse import urlparse
|
||||||
|
|
||||||
from fastapi import Depends, HTTPException, Query, Request
|
from fastapi import Depends, HTTPException, Query, Request
|
||||||
|
from loguru import logger
|
||||||
|
|
||||||
from lnbits.core.crud import get_user
|
from lnbits.core.crud import get_user
|
||||||
from lnbits.core.services import check_transaction_status, create_invoice
|
from lnbits.core.services import check_transaction_status, create_invoice
|
||||||
|
|
@ -70,6 +71,7 @@ async def api_domain_create(
|
||||||
|
|
||||||
if not cf_response or not cf_response["success"]:
|
if not cf_response or not cf_response["success"]:
|
||||||
await delete_domain(domain.id)
|
await delete_domain(domain.id)
|
||||||
|
logger.error("Cloudflare failed with: " + cf_response["errors"][0]["message"]) # type: ignore
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=HTTPStatus.BAD_REQUEST, detail="Problem with cloudflare."
|
status_code=HTTPStatus.BAD_REQUEST, detail="Problem with cloudflare."
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue