mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-07-20 11:26:07 +00:00
fix(list): 列出不存在的页时失败
This commit is contained in:
@@ -31,7 +31,7 @@ class ListCommand(aamgr.AbstractCommandNode):
|
|||||||
|
|
||||||
results = pkg.openai.session.get_session(session_name).list_history(page=page)
|
results = pkg.openai.session.get_session(session_name).list_history(page=page)
|
||||||
if len(results) == 0:
|
if len(results) == 0:
|
||||||
reply = ["[bot]第{}页没有历史会话".format(page)]
|
reply_str = "[bot]第{}页没有历史会话".format(page)
|
||||||
else:
|
else:
|
||||||
reply_str = "[bot]历史会话 第{}页:\n".format(page)
|
reply_str = "[bot]历史会话 第{}页:\n".format(page)
|
||||||
current = -1
|
current = -1
|
||||||
|
|||||||
Reference in New Issue
Block a user