Skip to content

Commit

Permalink
ckan datastore: convert data error to unicode instead of str to avoid…
Browse files Browse the repository at this point in the history
… encoding errors
  • Loading branch information
fanderegg authored and amercader committed Feb 14, 2017
1 parent 30fb0d2 commit c125131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/datastore/logic/action.py
Expand Up @@ -141,7 +141,7 @@ def datastore_create(context, data_dict):
try:
result = db.create(context, data_dict)
except db.InvalidDataError as err:
raise p.toolkit.ValidationError(str(err))
raise p.toolkit.ValidationError(unicode(err))

# Set the datastore_active flag on the resource if necessary
if resource.extras.get('datastore_active') is not True:
Expand Down

0 comments on commit c125131

Please sign in to comment.