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 --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'main.py') diff --git a/main.py b/main.py index 177fc7c6..6f8ddbef 100644 --- a/main.py +++ b/main.py @@ -85,7 +85,7 @@ def sign_in(): @FLASK_CORE_APP.route('/api//', methods=['GET', 'POST', 'PUT', 'DELETE']) def api_call(version, endpoint_path): - """Call an API endpoint directly over HTTP""" + """Call an API endpoint directly over HTTP.""" # Get path and parameters (path, path_parameters) = path_parser.parse(version, endpoint_path) @@ -169,7 +169,7 @@ def _process_message(message): response.id = message['id'] except exceptions.RequestInitializationError as e: - response = rest.Response(400, e.message) + response = rest.Response(400, str(e)) response.id = message['id'] if not 'method' in message: -- cgit v1.2.3