From c7f773b027019086153f0260b507c8fa173ee5e8 Mon Sep 17 00:00:00 2001 From: Georgios Andreadis Date: Wed, 24 Jun 2020 10:05:22 +0200 Subject: Fix API serialization issues --- opendc/api/v2/jobs/jobId/endpoint.py | 2 +- opendc/api/v2/jobs/jobId/tasks/endpoint.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'opendc/api/v2/jobs') diff --git a/opendc/api/v2/jobs/jobId/endpoint.py b/opendc/api/v2/jobs/jobId/endpoint.py index c24b04d0..4dc43728 100644 --- a/opendc/api/v2/jobs/jobId/endpoint.py +++ b/opendc/api/v2/jobs/jobId/endpoint.py @@ -12,7 +12,7 @@ def GET(request): request.check_required_parameters(path={'jobId': 'int'}) except exceptions.ParameterError as e: - return Response(400, e.message) + return Response(400, str(e)) # Instantiate a Job and make sure it exists diff --git a/opendc/api/v2/jobs/jobId/tasks/endpoint.py b/opendc/api/v2/jobs/jobId/tasks/endpoint.py index d412df00..f2cb3384 100644 --- a/opendc/api/v2/jobs/jobId/tasks/endpoint.py +++ b/opendc/api/v2/jobs/jobId/tasks/endpoint.py @@ -13,7 +13,7 @@ def GET(request): request.check_required_parameters(path={'jobId': 'int'}) except exceptions.ParameterError as e: - return Response(400, e.message) + return Response(400, str(e)) # Instantiate a Job and make sure it exists -- cgit v1.2.3