datopian/ckanext-orgdashboards

JSONDecodeError

ZoranPandovski opened this issue · 0 comments

If user delete the resource and the map was created for it the action orgdashboards_get_geojson_properties is returning status 404 not found. We should check for status code before casting the response to Json which results in server error.

https://github.com/ViderumGlobal/ckanext-orgdashboards/blob/2942c1d5e7f0b2ebd03df82ef9fc98d69960477d/ckanext/orgdashboards/helpers.py#L267