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

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


The following commit(s) were added to refs/heads/master by this push:
     new cf30e16  fix: construct SupersetErrors properly (#9799)
cf30e16 is described below

commit cf30e1655081ef886c0d5f0484898bd5e0142beb
Author: Erik Ritter <[email protected]>
AuthorDate: Wed May 13 14:03:42 2020 -0700

    fix: construct SupersetErrors properly (#9799)
    
    * fix: construct SupersetErrors properly
    
    * Update viz_sip38.py
---
 superset/viz.py       | 2 +-
 superset/viz_sip38.py | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/superset/viz.py b/superset/viz.py
index becb32c..0ed3e30 100644
--- a/superset/viz.py
+++ b/superset/viz.py
@@ -467,7 +467,7 @@ class BaseViz:
                     SupersetError(
                         message=str(ex),
                         level=ErrorLevel.ERROR,
-                        type=SupersetErrorType.VIZ_GET_DF_ERROR,
+                        error_type=SupersetErrorType.VIZ_GET_DF_ERROR,
                     )
                 )
                 self.errors.append(error)
diff --git a/superset/viz_sip38.py b/superset/viz_sip38.py
index 52a1afe..59ff148 100644
--- a/superset/viz_sip38.py
+++ b/superset/viz_sip38.py
@@ -507,7 +507,7 @@ class BaseViz:
                     SupersetError(
                         message=str(ex),
                         level=ErrorLevel.ERROR,
-                        type=SupersetErrorType.VIZ_GET_DF_ERROR,
+                        error_type=SupersetErrorType.VIZ_GET_DF_ERROR,
                     )
                 )
                 self.errors.append(error)

Reply via email to