diff --git a/superset/exceptions.py b/superset/exceptions.py index b5ae7478dc85a..76da484dc3f95 100644 --- a/superset/exceptions.py +++ b/superset/exceptions.py @@ -233,4 +233,4 @@ def __init__(self, error: ValidationError): class SupersetCancelQueryException(SupersetException): - pass + status = 422 diff --git a/superset/views/core.py b/superset/views/core.py index e262ab7425364..767af4e98b5ef 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -2347,6 +2347,7 @@ def results_exec(key: str) -> FlaskResponse: ) @has_access_api + @handle_api_exception @expose("/stop_query/", methods=["POST"]) @event_logger.log_this @backoff.on_exception(