From 5d39215bc4089abe6addcc58403d225223dc7488 Mon Sep 17 00:00:00 2001 From: Soulter <37870767+Soulter@users.noreply.github.com> Date: Sat, 17 Dec 2022 23:14:44 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E5=A4=8D=E4=BA=86uniqueSe?= =?UTF-8?q?ssionMode=E9=85=8D=E7=BD=AE=E6=97=A0=E6=95=88=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cores/qqbot/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/qqbot/core.py b/cores/qqbot/core.py index 232b2347d..b62ef20a4 100644 --- a/cores/qqbot/core.py +++ b/cores/qqbot/core.py @@ -143,7 +143,7 @@ def initBot(chatgpt_inst): cfg = yaml.safe_load(ymlfile) try: - if 'uniqueSessionMode' in cfg['qqbot'] and cfg['qqbot']['uniqueSessionMode'] == 'true': + if 'uniqueSessionMode' in cfg and cfg['qqbot']['uniqueSessionMode'] == 'true': uniqueSession = True else: uniqueSession = False