fix: super-user is a special read-only value that is logged to the console

This commit is contained in:
Vlad Stan 2022-12-12 10:12:35 +02:00
parent bed2eff7fb
commit 7e2b1e65a0

View File

@ -455,6 +455,8 @@ def update_cached_settings(sets_dict: dict):
setattr(settings, key, value)
except:
logger.error(f"error overriding setting: {key}, value: {value}")
if "super_user" in sets_dict:
setattr(settings, "super_user", sets_dict["super_user"])
class WebsocketConnectionManager: