mirror of https://github.com/apache/superset.git
[csv-upload] Fixing message encoding (#6971)
This commit is contained in:
parent
0a8bc84a02
commit
48431ab5b9
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue