From 7160daecf390d35d3ceb5ae585c96ae674af4911 Mon Sep 17 00:00:00 2001 From: Elizabeth Thompson Date: Thu, 16 Feb 2023 16:31:16 -0800 Subject: [PATCH] chore: change AlertQueryError to 400 (#23102) --- 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.")