From b875b38f506f46679dbc0018c471e6eb4e55528c Mon Sep 17 00:00:00 2001 From: peterdudfield Date: Mon, 23 Oct 2023 13:46:41 +0100 Subject: [PATCH] stop error when running auth --- src/auth.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/auth.py b/src/auth.py index cb00f62..4cc53ae 100644 --- a/src/auth.py +++ b/src/auth.py @@ -14,7 +14,11 @@ def check_password(): """Returns `True` if the user had the correct password.""" with st.sidebar: - user_info = login_button(clientId=clientId, domain=domain,debug_logs=True) + try: + user_info = login_button(clientId=clientId, domain=domain,debug_logs=True) + except: + st.text('Could not run auth') + return False if user_info is None: st.text('No user info')