From 7f46c2d741dd3e90e0fbcdc85911bf6f8231860b Mon Sep 17 00:00:00 2001 From: Sheppy Date: Mon, 22 Jun 2020 21:45:05 +0200 Subject: [PATCH] return 500 on fail --- python/httpAPI.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/httpAPI.py b/python/httpAPI.py index f0f9e5b..7f793fd 100644 --- a/python/httpAPI.py +++ b/python/httpAPI.py @@ -21,7 +21,7 @@ def run(port, parser): def health(): try: count, avgPred = db.check() - return ("Rounds: {}, AvgPrediction (lower than 0.5 is good): {}".format(count, avgPred)) + return ("Rounds: {}, AvgPrediction (lower than 0.5 is good): {}".format(count, avgPred), 500) except AssertionError as e: return ("{}".format(e), 200)