summaryrefslogtreecommitdiff
path: root/opendc/api/v2/tiles/tileId/endpoint.py
diff options
context:
space:
mode:
Diffstat (limited to 'opendc/api/v2/tiles/tileId/endpoint.py')
-rw-r--r--opendc/api/v2/tiles/tileId/endpoint.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/opendc/api/v2/tiles/tileId/endpoint.py b/opendc/api/v2/tiles/tileId/endpoint.py
index 85cbd9f4..4a1a5447 100644
--- a/opendc/api/v2/tiles/tileId/endpoint.py
+++ b/opendc/api/v2/tiles/tileId/endpoint.py
@@ -12,7 +12,7 @@ def GET(request):
request.check_required_parameters(path={'tileId': 'int'})
except exceptions.ParameterError as e:
- return Response(400, e.message)
+ return Response(400, str(e))
# Instantiate a Tile from the database
@@ -44,7 +44,7 @@ def DELETE(request):
request.check_required_parameters(path={'tileId': 'int'})
except exceptions.ParameterError as e:
- return Response(400, e.message)
+ return Response(400, str(e))
# Instantiate a Tile from the database