diff --git a/truthinquiry/routes/routes_api.py b/truthinquiry/routes/routes_api.py index b4c65a6..4f797d0 100644 --- a/truthinquiry/routes/routes_api.py +++ b/truthinquiry/routes/routes_api.py @@ -149,7 +149,7 @@ def get_npc_reaction(): image = game.get_npc_reaction(npc_id) errors = ["npc not in game","error reading file"] if image in [0,1]: - return {"error" :1, "msg": errors[image]} , 500 + return {"error": 1, "msg": errors[image]} response = flask.make_response(image) response.headers.set('Content-Type', 'image/png')