Added try() for main()

main
Lasse Server 3 years ago
parent 98a65a9b80
commit c593073882
  1. 4
      app.py

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

Loading…
Cancel
Save