You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by jo...@apache.org on 2019/03/03 23:27:22 UTC
[incubator-superset] branch master updated: [csv-upload] Fixing
message encoding (#6971)
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 <45...@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')