You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2021/03/30 14:43:23 UTC

[superset] branch hugh/generic-err-422 created (now 73aa8c1)

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

hugh pushed a change to branch hugh/generic-err-422
in repository https://gitbox.apache.org/repos/asf/superset.git.


      at 73aa8c1  change status code for generic errors to 422

This branch includes the following new commits:

     new 73aa8c1  change status code for generic errors to 422

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


[superset] 01/01: change status code for generic errors to 422

Posted by hu...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

hugh pushed a commit to branch hugh/generic-err-422
in repository https://gitbox.apache.org/repos/asf/superset.git

commit 73aa8c1e23b52b17994c1bb0c9b039154fda906e
Author: hughhhh <hu...@gmail.com>
AuthorDate: Tue Mar 30 10:42:12 2021 -0400

    change status code for generic errors to 422
---
 superset/exceptions.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/exceptions.py b/superset/exceptions.py
index 5dd6438..6ba1093 100644
--- a/superset/exceptions.py
+++ b/superset/exceptions.py
@@ -59,7 +59,7 @@ class SupersetTimeoutException(SupersetErrorException):
 
 
 class SupersetGenericDBErrorException(SupersetErrorException):
-    status = 500
+    status = 422
 
     def __init__(
         self,