From d6fc61739f3552e2ea957ff25f5086529abcc6ab Mon Sep 17 00:00:00 2001 From: Divided by Zer0 Date: Sat, 10 Sep 2022 14:52:24 +0200 Subject: [PATCH] no need to dmp json --- aiserver.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aiserver.py b/aiserver.py index a751a85c..ab2f92a1 100644 --- a/aiserver.py +++ b/aiserver.py @@ -5184,13 +5184,13 @@ def sendtocluster(txt, min, max): js = req.json() except requests.exceptions.ConnectionError: errmsg ="Horde unavailable. Please try again later" - print("{0}{1}{2}".format(colors.RED, json.dumps(errmsg, indent=2), colors.END)) + print("{0}{1}{2}".format(colors.RED, errmsg, colors.END)) emit('from_server', {'cmd': 'errmsg', 'data': errmsg}, broadcast=True) set_aibusy(0) return except requests.exceptions.JSONDecodeError: errmsg ="Unexpected message received from the Horde: '{req.text}'" - print("{0}{1}{2}".format(colors.RED, json.dumps(errmsg, indent=2), colors.END)) + print("{0}{1}{2}".format(colors.RED, errmsg, colors.END)) emit('from_server', {'cmd': 'errmsg', 'data': errmsg}, broadcast=True) set_aibusy(0) return