From c0e0b5908b43d2efe788e7a7e3132a0aab448ebb Mon Sep 17 00:00:00 2001 From: Nathan Woodburn Date: Thu, 20 Feb 2025 22:08:37 +1100 Subject: [PATCH] add test log --- main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.py b/main.py index 50b65cd..4b65eae 100644 --- a/main.py +++ b/main.py @@ -516,10 +516,12 @@ def auth_get(): # Check if user is valid r = requests.get(f'https://login.hns.au/auth/user?token={token}') if r.status_code != 200: + print(r.text,flush=True) return redirect('/?error=Failed to login&reason=Failed to connect to HNS Login') try: r = r.json() except: + print(r.text,flush=True) return redirect('/?error=Failed to login&reason=Failed to connect to HNS Login') if 'error' in r: