Closed WithdewHua closed 4 years ago
【复现步骤】
python bot.py
/tasks
【问题描述】 在 shell 里可以看到 caused error "'NoneType' object is not iterable" 的报错,查看此时 tasks = context.user_data.get('tasks') 值,为 None
caused error "'NoneType' object is not iterable"
tasks = context.user_data.get('tasks')
【修改建议】 建议增加对 tasks 值的判断
另外,提一下拼写错误,README 中 usage 一节的第一点中存在多处错误,以及 bot.py 中 start 函数中的 shell commend
bot.py
start
shell commend
已修复
【复现步骤】
python bot.py
初次运行 bot 时,此时 tasks list 为空;/tasks
;【问题描述】 在 shell 里可以看到
caused error "'NoneType' object is not iterable"
的报错,查看此时tasks = context.user_data.get('tasks')
值,为 None【修改建议】 建议增加对 tasks 值的判断
另外,提一下拼写错误,README 中 usage 一节的第一点中存在多处错误,以及
bot.py
中start
函数中的shell commend