From 18faa7cabb77a44245e048670636fcc59dfda29f Mon Sep 17 00:00:00 2001 From: ebolam Date: Fri, 9 Sep 2022 10:20:17 -0400 Subject: [PATCH] Another fix --- aiserver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiserver.py b/aiserver.py index 207aca64..7cfde87a 100644 --- a/aiserver.py +++ b/aiserver.py @@ -7698,7 +7698,7 @@ def UI_2_save_cookies(data): #Note this won't sync to the client automatically as we're modifying a variable rather than setting it koboldai_vars.cookies[key] = data[key] with open("./settings/cookies.settings", "w") as f: - f.write(json.dumps(koboldai_vars.cookies)) + json.dump(koboldai_vars.cookies, f) #==================================================================# # Load Tweaks