mirror of
https://github.com/apache/superset.git
synced 2026-05-07 00:44:26 +00:00
[csv-upload] Fixing message encoding (#6971)
(cherry picked from commit 48431ab5b9)
This commit is contained in:
@@ -378,7 +378,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')
|
||||
|
||||
Reference in New Issue
Block a user