You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by gr...@apache.org on 2019/03/22 00:56:51 UTC
[incubator-superset] 01/03: [csv-upload] Fixing message encoding
(#6971)
This is an automated email from the ASF dual-hosted git repository.
graceguo pushed a commit to branch 0.30
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
commit d1952b8d047cabecab11dab9f3eef730d19b2a05
Author: John Bodley <45...@users.noreply.github.com>
AuthorDate: Sun Mar 3 15:27:08 2019 -0800
[csv-upload] Fixing message encoding (#6971)
(cherry picked from commit 48431ab5b9375a94c5262a0336d9c69e5f01a3ac)
---
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 a15d724..821eb9d 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -362,7 +362,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')