summaryrefslogtreecommitdiff
path: root/opendc/api/v2/traces/traceId
diff options
context:
space:
mode:
Diffstat (limited to 'opendc/api/v2/traces/traceId')
-rw-r--r--opendc/api/v2/traces/traceId/endpoint.py2
-rw-r--r--opendc/api/v2/traces/traceId/jobs/endpoint.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/opendc/api/v2/traces/traceId/endpoint.py b/opendc/api/v2/traces/traceId/endpoint.py
index fe837c73..720d3fd0 100644
--- a/opendc/api/v2/traces/traceId/endpoint.py
+++ b/opendc/api/v2/traces/traceId/endpoint.py
@@ -12,7 +12,7 @@ def GET(request):
request.check_required_parameters(path={'traceId': 'int'})
except exceptions.ParameterError as e:
- return Response(400, e.message)
+ return Response(400, str(e))
# Instantiate a Trace and make sure it exists
diff --git a/opendc/api/v2/traces/traceId/jobs/endpoint.py b/opendc/api/v2/traces/traceId/jobs/endpoint.py
index 671e4d83..eec52b56 100644
--- a/opendc/api/v2/traces/traceId/jobs/endpoint.py
+++ b/opendc/api/v2/traces/traceId/jobs/endpoint.py
@@ -13,7 +13,7 @@ def GET(request):
request.check_required_parameters(path={'traceId': 'int'})
except exceptions.ParameterError as e:
- return Response(400, e.message)
+ return Response(400, str(e))
# Instantiate a Trace and make sure it exists