fix: check if key present in settings before updating (#2306)
This commit is contained in:
parent
4c0bd132b1
commit
5b4398911a
1 changed files with 8 additions and 5 deletions
|
|
@ -709,7 +709,10 @@ async def check_webpush_settings():
|
|||
|
||||
def update_cached_settings(sets_dict: dict):
|
||||
for key, value in sets_dict.items():
|
||||
if key not in readonly_variables:
|
||||
if key in readonly_variables:
|
||||
continue
|
||||
if key not in settings.dict().keys():
|
||||
continue
|
||||
try:
|
||||
setattr(settings, key, value)
|
||||
except Exception:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue