Skip to content
Snippets Groups Projects
Commit 485a2496 authored by Dennis's avatar Dennis
Browse files

exception fix

parent 51bafa8e
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,7 @@ class SpatialRegister(object): ...@@ -33,7 +33,7 @@ class SpatialRegister(object):
spatial_data = json.loads(response_body) spatial_data = json.loads(response_body)
except Exception as inst: except Exception as inst:
msg = "Couldn't read response from spatial service %r: %s" % (response_body, 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) self._create_spatial_list(spatial_data, spatial_url)
def _create_spatial_list(self, spatial_data, spatial_url=''): def _create_spatial_list(self, spatial_data, spatial_url=''):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment