Skip to content

Commit

Permalink
chore: change AlertQueryError to 400 (#23102)
Browse files Browse the repository at this point in the history
  • Loading branch information
eschutho authored Feb 17, 2023
1 parent 75495d1 commit 7160dae
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 7160dae

Please sign in to comment.