no need to dmp json

This commit is contained in:
Divided by Zer0 2022-09-10 14:52:24 +02:00
parent 684399cdd6
commit d6fc61739f
1 changed files with 2 additions and 2 deletions

View File

@ -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