Skip to content

Commit fa1e9c9

Browse files
committed
Fix get behavior
1 parent d426c86 commit fa1e9c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

superset/commands/database/validate_sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def run(self) -> list[dict[str, Any]]:
6363
sql = self._properties["sql"]
6464
catalog = self._properties.get("catalog")
6565
schema = self._properties.get("schema")
66-
template_params = self._properties.get("template_params", {})
66+
template_params = self._properties.get("template_params") or {}
6767

6868
# Render Jinja templates to handle template syntax before validation
6969
template_processor = get_template_processor(self._model)

0 commit comments

Comments
 (0)