diff options
Diffstat (limited to 'opendc/api/v2/rooms/roomId/endpoint.py')
| -rw-r--r-- | opendc/api/v2/rooms/roomId/endpoint.py | 6 |
1 files changed, 3 insertions, 3 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 |
