diff options
Diffstat (limited to 'opendc/api/v2/tiles/tileId/rack/machines/endpoint.py')
| -rw-r--r-- | opendc/api/v2/tiles/tileId/rack/machines/endpoint.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/opendc/api/v2/tiles/tileId/rack/machines/endpoint.py b/opendc/api/v2/tiles/tileId/rack/machines/endpoint.py index 1ff25f44..34d3866e 100644 --- a/opendc/api/v2/tiles/tileId/rack/machines/endpoint.py +++ b/opendc/api/v2/tiles/tileId/rack/machines/endpoint.py @@ -13,7 +13,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 Rack from the database @@ -59,7 +59,7 @@ def POST(request): }) except exceptions.ParameterError as e: - return Response(400, e.message) + return Response(400, str(e)) # Instantiate a Rack from the database |
