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/room-types/name/allowed-objects/endpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'opendc/api/v2/room-types') diff --git a/opendc/api/v2/room-types/name/allowed-objects/endpoint.py b/opendc/api/v2/room-types/name/allowed-objects/endpoint.py index 9cc0dbca..166781e8 100644 --- a/opendc/api/v2/room-types/name/allowed-objects/endpoint.py +++ b/opendc/api/v2/room-types/name/allowed-objects/endpoint.py @@ -12,7 +12,7 @@ def GET(request): request.check_required_parameters(path={'name': 'string'}) except exceptions.ParameterError as e: - return Response(400, e.message) + return Response(400, str(e)) # Get the AllowedObjects -- cgit v1.2.3