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 cea71f7 commit b7102a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckanext/datastore/logic/action.py
Expand Up @@ -139,7 +139,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))

result.pop('id', None)
result.pop('private', None)
Expand Down

0 comments on commit b7102a0

Please sign in to comment.