Skip to content

Commit

Permalink
if no params
Browse files Browse the repository at this point in the history
  • Loading branch information
hughhhh committed Jun 23, 2021
1 parent c5153df commit 60c135d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions superset/databases/commands/validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ def run(self) -> None:
)

# perform initial validation
errors = engine_spec.validate_parameters(
self._properties.get("parameters", None)
)
errors = engine_spec.validate_parameters(self._properties.get("parameters", {}))
if errors:
raise InvalidParametersError(errors)

Expand Down

0 comments on commit 60c135d

Please sign in to comment.