Skip to content

Commit

Permalink
[i18n][xs]: Fix minor syntax error caused in cset:474c02a927bd.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Read committed Nov 1, 2011
1 parent 50450f6 commit 47905c3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ckan/lib/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,10 @@ def _get_request_data(cls):
try:
request_data = json.loads(request_data, encoding='utf8')
except ValueError, e:
raise ValueError, 'Error parsing JSON data. '
'Error: %r '
raise ValueError, 'Error parsing JSON data. ' \
'Error: %r ' \
'JSON (Decoded and re-encoded): %r' % \
(e, request_data))
(e, request_data)
if not isinstance(request_data, dict):
raise ValueError, "Request params must be in form of a json encoded dictionary."
# ensure unicode values
Expand Down

0 comments on commit 47905c3

Please sign in to comment.