diff --git a/src/endpoints/general.py b/src/endpoints/general.py index 13c1551..0961129 100644 --- a/src/endpoints/general.py +++ b/src/endpoints/general.py @@ -17,7 +17,7 @@ def gamenews(): faction = request.args.get('faction') playerLevel = request.args.get('playerLevel') print("Responded to game news api call GET") - return {"data": [ + return jsonify({"data": [ { "Id": "1", "MessageType": "Daily", @@ -49,7 +49,7 @@ def gamenews(): } ] } -]} + ]}) except TimeoutError: print("Timeout error") return jsonify({"status": "error"})