mirror of https://github.com/CIRCL/lookyloo
fix: Do not fail if cache_clean_user is gone from config
parent
bed34e378b
commit
f7dac21e71
|
@ -47,10 +47,10 @@ app.debug = False
|
||||||
basic_auth = HTTPBasicAuth()
|
basic_auth = HTTPBasicAuth()
|
||||||
token_auth = HTTPTokenAuth('LookylooToken')
|
token_auth = HTTPTokenAuth('LookylooToken')
|
||||||
auth = MultiAuth(basic_auth, token_auth)
|
auth = MultiAuth(basic_auth, token_auth)
|
||||||
if get_config('generic', 'cache_clean_user'):
|
try:
|
||||||
# Use legacy user mgmt
|
# Use legacy user mgmt
|
||||||
users = get_config('generic', 'cache_clean_user')
|
users = get_config('generic', 'cache_clean_user')
|
||||||
else:
|
except Exception:
|
||||||
users = get_config('generic', 'users')
|
users = get_config('generic', 'users')
|
||||||
|
|
||||||
users_table: Dict[str, Dict[str, str]] = {}
|
users_table: Dict[str, Dict[str, str]] = {}
|
||||||
|
|
Loading…
Reference in New Issue