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 8a27c67  change to 422 for stop query (#17292)
8a27c67 is described below

commit 8a27c6760d5e00677d3778a0e353051984fcb429
Author: AAfghahi <[email protected]>
AuthorDate: Fri Oct 29 19:34:41 2021 -0400

    change to 422 for stop query (#17292)
---
 superset/exceptions.py | 2 +-
 superset/views/core.py | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/superset/exceptions.py b/superset/exceptions.py
index b5ae747..76da484 100644
--- a/superset/exceptions.py
+++ b/superset/exceptions.py
@@ -233,4 +233,4 @@ class InvalidPayloadSchemaError(SupersetErrorException):
 
 
 class SupersetCancelQueryException(SupersetException):
-    pass
+    status = 422
diff --git a/superset/views/core.py b/superset/views/core.py
index e262ab7..767af4e 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -2347,6 +2347,7 @@ class Superset(BaseSupersetView):  # pylint: 
disable=too-many-public-methods
         )
 
     @has_access_api
+    @handle_api_exception
     @expose("/stop_query/", methods=["POST"])
     @event_logger.log_this
     @backoff.on_exception(

Reply via email to