ckan/ckanapi — pull request #26 by jpmckinney (2014-09-05 22:34:16+00:00)
Title: Improve error handing if using CKAN API client for a Socrata data catalog

Socrata returns JSON where the "error" key is a boolean. The CKAN API client expects the "error" key to be a dictionary. If "error" is not a dictionary, make it an empty dictionary.

Without this PR, you get a ridiculous `AttributeError: 'bool' object has no attribute 'get'`.