fix: Do not fail if cache_clean_user is gone from config

pull/167/head
Raphaël Vinot 2021-02-03 12:39:19 +01:00
parent bed34e378b
commit f7dac21e71
1 changed files with 2 additions and 2 deletions

View File

@ -47,10 +47,10 @@ app.debug = False
basic_auth = HTTPBasicAuth()
token_auth = HTTPTokenAuth('LookylooToken')
auth = MultiAuth(basic_auth, token_auth)
if get_config('generic', 'cache_clean_user'):
try:
# Use legacy user mgmt
users = get_config('generic', 'cache_clean_user')
else:
except Exception:
users = get_config('generic', 'users')
users_table: Dict[str, Dict[str, str]] = {}