From d61634a12681e45c4407d66d96dff73901a7552b Mon Sep 17 00:00:00 2001 From: Elizabeth Thompson Date: Thu, 16 Feb 2023 15:49:30 -0800 Subject: [PATCH] change AlertQueryError to 400 --- superset/reports/commands/exceptions.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/superset/reports/commands/exceptions.py b/superset/reports/commands/exceptions.py index 48dbfcaab9915..b908042f19a11 100644 --- a/superset/reports/commands/exceptions.py +++ b/superset/reports/commands/exceptions.py @@ -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.")