Code health: Small linting fix (#813)

* small linting fix

* je lint therefore je suis
This commit is contained in:
calle 2022-08-02 16:17:47 +02:00 committed by GitHub
parent 9154660479
commit b3c866fd1d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 3 deletions

View File

@ -247,8 +247,6 @@ async def api_payments_pay_invoice(bolt11: str, wallet: Wallet):
@core_app.post( @core_app.post(
"/api/v1/payments", "/api/v1/payments",
# deprecated=True,
# description="DEPRECATED. Use /api/v2/TBD and /api/v2/TBD instead",
status_code=HTTPStatus.CREATED, status_code=HTTPStatus.CREATED,
) )
async def api_payments_create( async def api_payments_create(

View File

@ -96,7 +96,7 @@ async def api_link_create_or_update(
data.min *= data.fiat_base_multiplier data.min *= data.fiat_base_multiplier
data.max *= data.fiat_base_multiplier data.max *= data.fiat_base_multiplier
if "success_url" in data and data.success_url[:8] != "https://": if data.success_url is not None and data.success_url.startswith("https://"):
raise HTTPException( raise HTTPException(
detail="Success URL must be secure https://...", detail="Success URL must be secure https://...",
status_code=HTTPStatus.BAD_REQUEST, status_code=HTTPStatus.BAD_REQUEST,