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

maximebeauchemin 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 e965907  BugFix(#3658) (#4133)
e965907 is described below

commit e96590744f96afb6800fec0f30da51e15612e7fd
Author: hidetoshiito <hidetoshi.it...@gmail.com>
AuthorDate: Thu Apr 12 05:21:54 2018 +0900

    BugFix(#3658) (#4133)
    
    * BugFix(#3658)
    
    rollback to old version
    
    * Update views.py
---
 superset/connectors/sqla/views.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/superset/connectors/sqla/views.py 
b/superset/connectors/sqla/views.py
index e3fb14d..3d47795 100644
--- a/superset/connectors/sqla/views.py
+++ b/superset/connectors/sqla/views.py
@@ -244,7 +244,9 @@ class TableModelView(DatasourceModelView, DeleteMixin, 
YamlExportMixin):  # noqa
                     get_datasource_exist_error_mgs(table.full_name))
 
         # Fail before adding if the table can't be found
-        if not table.database.has_table(table):
+        try:
+            table.get_sqla_table_object()
+        except Exception:
             raise Exception(_(
                 'Table [{}] could not be found, '
                 'please double check your '

-- 
To stop receiving notification emails like this one, please contact
maximebeauche...@apache.org.

Reply via email to