summaryrefslogtreecommitdiff
path: root/opendc/api/v2/experiments/experimentId/endpoint.py
diff options
context:
space:
mode:
Diffstat (limited to 'opendc/api/v2/experiments/experimentId/endpoint.py')
-rw-r--r--opendc/api/v2/experiments/experimentId/endpoint.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/opendc/api/v2/experiments/experimentId/endpoint.py b/opendc/api/v2/experiments/experimentId/endpoint.py
index a306e441..4ae4abf2 100644
--- a/opendc/api/v2/experiments/experimentId/endpoint.py
+++ b/opendc/api/v2/experiments/experimentId/endpoint.py
@@ -10,7 +10,7 @@ def GET(request):
request.check_required_parameters(path={'experimentId': 'int'})
except exceptions.ParameterError as e:
- return Response(400, e.message)
+ return Response(400, str(e))
# Instantiate an Experiment from the database
@@ -49,7 +49,7 @@ def PUT(request):
}})
except exceptions.ParameterError as e:
- return Response(400, e.message)
+ return Response(400, str(e))
# Instantiate an Experiment from the database
@@ -92,7 +92,7 @@ def DELETE(request):
request.check_required_parameters(path={'experimentId': 'int'})
except exceptions.ParameterError as e:
- return Response(400, e.message)
+ return Response(400, str(e))
# Instantiate an Experiment and make sure it exists