Added try() for main()

main
Lasse Server 2 years ago
parent 98a65a9b80
commit c593073882
  1. 6
      app.py

@ -258,7 +258,11 @@ authenticator = stauth.Authenticate(
name, authentication_status, username = authenticator.login('Login', 'main')
if authentication_status:
main()
try:
main()
except Exception as e:
print(e)
st.write('Något blev fel :(')
elif authentication_status is False:
st.error('Username/password is incorrect')

Loading…
Cancel
Save