timetask icon indicating copy to clipboard operation
timetask copied to clipboard

“执行定时任务,发生了错误:object of type '_io.BytesIO' has no len()”

Open MasterKe2003 opened this issue 1 year ago • 1 comments

自己开发的插件,函数中会返回一个图片对象,报错“执行定时任务,发生了错误:object of type '_io.BytesIO' has no len()” image 可以看到已经获取到文件对象了 我的插件代码是 image image

MasterKe2003 avatar Feb 16 '24 15:02 MasterKe2003

编辑timetask.py 457行 if reply_text is None or len(reply_text) <= 0: 改成 if reply_text is None or len(str(reply_text)) <= 0:

starsliao avatar Jun 13 '24 17:06 starsliao