[csv-upload] Fixing message encoding (#6971)

This commit is contained in:
John Bodley 2019-03-03 15:27:08 -08:00 committed by GitHub
parent 0a8bc84a02
commit 48431ab5b9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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')