JVice commited on
Commit
3607a6d
1 Parent(s): 66c89e3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -84,7 +84,8 @@ def user_login_create():
84
  global USER_LOGGED_IN
85
  users = None
86
  with USER_DATABASE_UPDATE_SCHEDULER.lock:
87
- with open(USER_DATABASE_PATH) as file:
 
88
  users = yaml.load(file, Loader=SafeLoader)
89
  AUTHENTICATOR = stauth.Authenticate(
90
  users['credentials'],
 
84
  global USER_LOGGED_IN
85
  users = None
86
  with USER_DATABASE_UPDATE_SCHEDULER.lock:
87
+ with USER_DATABASE_PATH.open('r') as file:
88
+ # with open(USER_DATABASE_PATH) as file:
89
  users = yaml.load(file, Loader=SafeLoader)
90
  AUTHENTICATOR = stauth.Authenticate(
91
  users['credentials'],