From e3fd480bdc45705d00497052a5d708a84f1b9d38 Mon Sep 17 00:00:00 2001 From: Aevann Date: Sat, 26 Aug 2023 20:31:31 +0300 Subject: [PATCH] handle challenges.cloudflare.com shitting the bed --- files/routes/login.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/files/routes/login.py b/files/routes/login.py index 704c9c2b5..efee57e22 100644 --- a/files/routes/login.py +++ b/files/routes/login.py @@ -296,7 +296,10 @@ def sign_up_post(v): x = requests.post(url, data=data, timeout=5) - if not x.json().get("success"): + try: + if not x.json().get("success"): + return signup_error("Unable to verify captcha [2].") + except: return signup_error("Unable to verify captcha [2].") session.pop("signup_token")