Update settings.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
Jan Tomášek 2025-12-10 10:28:00 +01:00 committed by GitHub
parent 01096c1813
commit e52b0ecf43
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -38,7 +38,7 @@ def get_default_value(name: str, value: T) -> T:
if isinstance(value, bool):
return env_value.strip().lower() in ('true', '1', 'yes', 'on') # type: ignore
elif isinstance(value, dict):
return json.loads(env_value) # type: ignore
return json.loads(env_value.strip()) # type: ignore
elif isinstance(value, str):
return str(env_value).strip() # type: ignore
else: