mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
no need to dmp json
This commit is contained in:
@ -5184,13 +5184,13 @@ def sendtocluster(txt, min, max):
|
|||||||
js = req.json()
|
js = req.json()
|
||||||
except requests.exceptions.ConnectionError:
|
except requests.exceptions.ConnectionError:
|
||||||
errmsg ="Horde unavailable. Please try again later"
|
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)
|
emit('from_server', {'cmd': 'errmsg', 'data': errmsg}, broadcast=True)
|
||||||
set_aibusy(0)
|
set_aibusy(0)
|
||||||
return
|
return
|
||||||
except requests.exceptions.JSONDecodeError:
|
except requests.exceptions.JSONDecodeError:
|
||||||
errmsg ="Unexpected message received from the Horde: '{req.text}'"
|
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)
|
emit('from_server', {'cmd': 'errmsg', 'data': errmsg}, broadcast=True)
|
||||||
set_aibusy(0)
|
set_aibusy(0)
|
||||||
return
|
return
|
||||||
|
Reference in New Issue
Block a user