From 485a2496b32b56eb04db1816e5299c9198d779f8 Mon Sep 17 00:00:00 2001 From: Dennis <2rupnow@informatik.uni-hamburg.de> Date: Thu, 31 Jan 2019 14:44:48 +0100 Subject: [PATCH] exception fix --- ckanext/odsh/model/spatial.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckanext/odsh/model/spatial.py b/ckanext/odsh/model/spatial.py index 37216d80..ef379e54 100644 --- a/ckanext/odsh/model/spatial.py +++ b/ckanext/odsh/model/spatial.py @@ -33,7 +33,7 @@ class SpatialRegister(object): spatial_data = json.loads(response_body) except Exception as inst: msg = "Couldn't read response from spatial service %r: %s" % (response_body, inst) - raise Exception(inst) + raise Exception(msg) self._create_spatial_list(spatial_data, spatial_url) def _create_spatial_list(self, spatial_data, spatial_url=''): -- GitLab