我扫码登上以后,@bot时,后端有反应,但是报错:Traceback (most recent call last): File "F:\chatgpt-on-wechat-master\lib\itchat\components\register.py", line 63, in configured_reply r = replyFn(msg) File "F:\chatgpt-on-wechat-master\channel\wechat\wechat_channel.py", line 47, in handler_group_msg WechatChannel().handle_group(cmsg) File "F:\chatgpt-on-wechat-master\common\time_check.py", line 40, in _time_checker f(self, *args, **kwargs) # 未开启时间模块则直接回答 File "F:\chatgpt-on-wechat-master\channel\wechat\wechat_channel.py", line 57, in wrapper self.receivedMsgs[msgId] = True File "F:\chatgpt-on-wechat-master\common\expired_dict.py", line 18, in __setitem__ expiry_time = datetime.now() + timedelta(seconds=self.expires_in_seconds) TypeError: unsupported type for timedelta seconds component: NoneType #2148
我扫码登上以后,@bot时,后端有反应,但是报错:Traceback (most recent call last): File "F:\chatgpt-on-wechat-master\lib\itchat\components\register.py", line 63, in configured_reply r = replyFn(msg) File "F:\chatgpt-on-wechat-master\channel\wechat\wechat_channel.py", line 47, in handler_group_msg WechatChannel().handle_group(cmsg) File "F:\chatgpt-on-wechat-master\common\time_check.py", line 40, in _time_checker f(self, *args, **kwargs) # 未开启时间模块则直接回答 File "F:\chatgpt-on-wechat-master\channel\wechat\wechat_channel.py", line 57, in wrapper self.receivedMsgs[msgId] = True File "F:\chatgpt-on-wechat-master\common\expired_dict.py", line 18, in setitem expiry_time = datetime.now() + timedelta(seconds=self.expires_in_seconds) TypeError: unsupported type for timedelta seconds component: NoneType
前置确认
⚠️ 搜索issues中是否已存在类似问题
操作系统类型?
Windows
运行的python版本是?
python 3.9
使用的chatgpt-on-wechat版本是?
Latest Release
运行的
channel
类型是?wx(个人微信, itchat)
复现步骤 🕹
No response
问题描述 😯
我扫码登上以后,@bot时,后端有反应,但是报错:Traceback (most recent call last): File "F:\chatgpt-on-wechat-master\lib\itchat\components\register.py", line 63, in configured_reply r = replyFn(msg) File "F:\chatgpt-on-wechat-master\channel\wechat\wechat_channel.py", line 47, in handler_group_msg WechatChannel().handle_group(cmsg) File "F:\chatgpt-on-wechat-master\common\time_check.py", line 40, in _time_checker f(self, *args, **kwargs) # 未开启时间模块则直接回答 File "F:\chatgpt-on-wechat-master\channel\wechat\wechat_channel.py", line 57, in wrapper self.receivedMsgs[msgId] = True File "F:\chatgpt-on-wechat-master\common\expired_dict.py", line 18, in setitem expiry_time = datetime.now() + timedelta(seconds=self.expires_in_seconds) TypeError: unsupported type for timedelta seconds component: NoneType
终端日志 📒