superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From johnbod...@apache.org
Subject [incubator-superset] branch master updated: [csv-upload] Fixing message encoding (#6971)
Date Sun, 03 Mar 2019 23:27:22 GMT
This is an automated email from the ASF dual-hosted git repository.

johnbodley 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 48431ab  [csv-upload] Fixing message encoding (#6971)
48431ab is described below

commit 48431ab5b9375a94c5262a0336d9c69e5f01a3ac
Author: John Bodley <4567245+john-bodley@users.noreply.github.com>
AuthorDate: Sun Mar 3 15:27:08 2019 -0800

    [csv-upload] Fixing message encoding (#6971)
---
 superset/views/core.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/superset/views/core.py b/superset/views/core.py
index 48f8324..b566c77 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -401,7 +401,7 @@ class CsvToDatabaseView(SimpleFormView):
             except OSError:
                 pass
             message = 'Table name {} already exists. Please pick another'.format(
-                form.name.data) if isinstance(e, IntegrityError) else e
+                form.name.data) if isinstance(e, IntegrityError) else str(e)
             flash(
                 message,
                 'danger')


Mime
View raw message