Update server/helper.py

Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
Ingo Ratsdorf
2025-09-03 07:10:26 +12:00
committed by GitHub
parent 9946f9affd
commit 00c7bb65e1

View File

@@ -377,9 +377,8 @@ def get_setting_value(key):
value = ''
# lookup key in secondary cache
if SETTINGS_SECONDARYCACHE.get(key) is not None:
if key in SETTINGS_SECONDARYCACHE:
return SETTINGS_SECONDARYCACHE[key]
# Prefer conf.mySettings if available
if hasattr(conf, "mySettings") and conf.mySettings:
# conf.mySettings is a list of tuples, find by key (tuple[0])