summaryrefslogtreecommitdiff
path: root/opendc/api/v2/rooms
diff options
context:
space:
mode:
Diffstat (limited to 'opendc/api/v2/rooms')
-rw-r--r--opendc/api/v2/rooms/roomId/endpoint.py6
-rw-r--r--opendc/api/v2/rooms/roomId/tiles/endpoint.py4
2 files changed, 5 insertions, 5 deletions
diff --git a/opendc/api/v2/rooms/roomId/endpoint.py b/opendc/api/v2/rooms/roomId/endpoint.py
index a43a82e7..90bcdfd6 100644
--- a/opendc/api/v2/rooms/roomId/endpoint.py
+++ b/opendc/api/v2/rooms/roomId/endpoint.py
@@ -12,7 +12,7 @@ def GET(request):
request.check_required_parameters(path={'roomId': 'int'})
except exceptions.ParameterError as e:
- return Response(400, e.message)
+ return Response(400, str(e))
# Instantiate a Room from the database
@@ -48,7 +48,7 @@ def PUT(request):
}})
except exceptions.ParameterError as e:
- return Response(400, e.message)
+ return Response(400, str(e))
# Instantiate a Room from the database
@@ -88,7 +88,7 @@ def DELETE(request):
request.check_required_parameters(path={'roomId': 'int'})
except exceptions.ParameterError as e:
- return Response(400, e.message)
+ return Response(400, str(e))
# Instantiate a Room and make sure it exists
diff --git a/opendc/api/v2/rooms/roomId/tiles/endpoint.py b/opendc/api/v2/rooms/roomId/tiles/endpoint.py
index 6e498a48..971514ec 100644
--- a/opendc/api/v2/rooms/roomId/tiles/endpoint.py
+++ b/opendc/api/v2/rooms/roomId/tiles/endpoint.py
@@ -13,7 +13,7 @@ def GET(request):
request.check_required_parameters(path={'roomId': 'int'})
except exceptions.ParameterError as e:
- return Response(400, e.message)
+ return Response(400, str(e))
# Instantiate a Room from the database
@@ -53,7 +53,7 @@ def POST(request):
}})
except exceptions.ParameterError as e:
- return Response(400, e.message)
+ return Response(400, str(e))
if request.params_path['roomId'] != request.params_body['tile']['roomId']:
return Response(400, 'ID mismatch')