Skip to content

Commit

Permalink
fix(list): 列出不存在的页时失败
Browse files Browse the repository at this point in the history
  • Loading branch information
RockChinQ committed Jan 15, 2024
1 parent 701cb7b commit 77bc6fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/qqbot/cmds/session/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def process(cls, ctx: aamgr.Context) -> tuple[bool, list]:

results = pkg.openai.session.get_session(session_name).list_history(page=page)
if len(results) == 0:
reply = ["[bot]第{}页没有历史会话".format(page)]
reply_str = "[bot]第{}页没有历史会话".format(page)
else:
reply_str = "[bot]历史会话 第{}页:\n".format(page)
current = -1
Expand Down

0 comments on commit 77bc6fb

Please sign in to comment.