Skip to content

Commit

Permalink
change AlertQueryError to 400
Browse files Browse the repository at this point in the history
  • Loading branch information
eschutho committed Feb 16, 2023
1 parent 50f1e2e commit d61634a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions superset/reports/commands/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,11 @@ class AlertQueryInvalidTypeError(CommandException):


class AlertQueryError(CommandException):
"""
SQL query is not valid
"""

status = 400
message = _("Alert found an error while executing a query.")


Expand Down

0 comments on commit d61634a

Please sign in to comment.