handle turnstile outages

pull/136/head
Aevann 2023-02-28 19:02:03 +02:00
parent 330fd9c97d
commit c6af523b5d
1 changed files with 1 additions and 1 deletions

View File

@ -302,7 +302,7 @@ def sign_up_post(v:Optional[User]):
x = requests.post(url, data=data, timeout=5)
if not x.json()["success"]:
if not x.json().get("success"):
return signup_error("Unable to verify captcha [2].")
session.pop("signup_token")