Skip to content

Commit

Permalink
stop error when running auth
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Oct 23, 2023
1 parent bb43beb commit b875b38
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit b875b38

Please sign in to comment.