Open MasterKe2003 opened 7 months ago
自己开发的插件,函数中会返回一个图片对象,报错“执行定时任务,发生了错误:object of type '_io.BytesIO' has no len()” 可以看到已经获取到文件对象了 我的插件代码是
编辑timetask.py 457行 if reply_text is None or len(reply_text) <= 0: 改成 if reply_text is None or len(str(reply_text)) <= 0:
if reply_text is None or len(reply_text) <= 0:
if reply_text is None or len(str(reply_text)) <= 0:
自己开发的插件,函数中会返回一个图片对象,报错“执行定时任务,发生了错误:object of type '_io.BytesIO' has no len()” 可以看到已经获取到文件对象了 我的插件代码是