mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-Nonebot.git
synced 2026-04-01 22:04:51 +00:00
待办异常处理问题修复
This commit is contained in:
parent
725928f340
commit
1c9d6107ac
2 changed files with 4 additions and 1 deletions
|
|
@ -58,6 +58,9 @@ def get_user_todo_list(member_openid):
|
|||
result = session.execute(selectUserTodo,
|
||||
{'member_openid': member_openid}).fetchall()
|
||||
session.close()
|
||||
if str(result) == "[]":
|
||||
return False
|
||||
|
||||
return result
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ async def show_todo_list(message: MessageEvent):
|
|||
|
||||
result = get_user_todo_list(member_openid)
|
||||
if result is False:
|
||||
await get_todo_list.finish("您还未创建任何待办\n尝试使用 /新建待办 创建一份吧")
|
||||
await get_todo_list.finish("\n您还未创建待办\n快使用 /新建待办 创建一份吧")
|
||||
|
||||
todo_list = ""
|
||||
count = 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue