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
2 changed files with 1 additions and 3 deletions
+1 -1
View File
@@ -96,7 +96,7 @@ async def api_link_create_or_update(
data.min *= 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(
detail="Success URL must be secure https://...",
status_code=HTTPStatus.BAD_REQUEST,