diff --git a/litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.py b/litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.py index 6b1d757504d..2debecc8d1c 100644 --- a/litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.py +++ b/litellm/proxy/ui_crud_endpoints/proxy_setting_endpoints.py @@ -779,11 +779,7 @@ async def get_sso_settings(): # Build SSO config from database values, falling back to the environment so # env-configured SSO still populates the UI. Stored DB values win on overlap. - env_fallback = { - field: val - for field, env_var in _SSO_FIELD_TO_ENV_VAR.items() - if (val := os.environ.get(env_var)) - } + env_fallback = {field: val for field, env_var in _SSO_FIELD_TO_ENV_VAR.items() if (val := os.environ.get(env_var))} merged_sso_settings = {**env_fallback, **decrypted_sso_settings_dict} sso_config = SSOConfig(