no need to dmp json
This commit is contained in:
parent
684399cdd6
commit
d6fc61739f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue