vicalloy / telegram-shell-bot

A telegram Bot to run shell commands
194 stars 83 forks source link

tasks 值为 None #2

Closed WithdewHua closed 4 years ago

WithdewHua commented 4 years ago

【复现步骤】

【问题描述】 在 shell 里可以看到 caused error "'NoneType' object is not iterable" 的报错,查看此时 tasks = context.user_data.get('tasks') 值,为 None

【修改建议】 建议增加对 tasks 值的判断

另外,提一下拼写错误,README 中 usage 一节的第一点中存在多处错误,以及 bot.pystart 函数中的 shell commend

vicalloy commented 4 years ago

已修复