Update settings.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Jan Tomášek committed
Dec 10, 2025 at 10:28 UTC
e52b0ecf434f09303d2ab77ca93862136e0b6840
1 file changed
+1
-1
python/helpers/settings.py
+1
-1
@@ -38,7 +38,7 @@ def get_default_value(name: str, value: T) -> T:
38
if isinstance(value, bool):
39
return env_value.strip().lower() in ('true', '1', 'yes', 'on') # type: ignore
40
elif isinstance(value, dict):
41
- return json.loads(env_value) # type: ignore
41
+ return json.loads(env_value.strip()) # type: ignore
42
elif isinstance(value, str):
43
return str(env_value).strip() # type: ignore
44
else: