Skip to content

Commit

Permalink
default to empty dict
Browse files Browse the repository at this point in the history
  • Loading branch information
tianjing-li committed Jan 21, 2025
1 parent 79b1616 commit b712043
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/model_deployments/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def get_deployment_config_var(var_name: str, default: str, **kwargs: Any) -> str
db_config = kwargs.get("db_config", {})

# Get Request Header value
ctx_deployment_config = ctx.deployment_config if ctx else None
ctx_deployment_config = ctx.deployment_config if ctx else {}
config = ctx_deployment_config.get(var_name)

# Return immediately with a valid config
Expand Down

0 comments on commit b712043

Please sign in to comment.