Code health: Small linting fix (#813)
* small linting fix * je lint therefore je suis
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user