You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by el...@apache.org on 2023/02/17 00:31:23 UTC

[superset] branch master updated: chore: change AlertQueryError to 400 (#23102)

This is an automated email from the ASF dual-hosted git repository.

elizabeth pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 7160daecf3 chore: change AlertQueryError to 400 (#23102)
7160daecf3 is described below

commit 7160daecf390d35d3ceb5ae585c96ae674af4911
Author: Elizabeth Thompson <es...@gmail.com>
AuthorDate: Thu Feb 16 16:31:16 2023 -0800

    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 48dbfcaab9..b908042f19 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.")