Turing-Project / AntiFraudChatBot

A simple prompt-chatting AI based on wechaty and fintuned NLP model

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

无法回复消息

Kevinwu901113 opened this issue · comments

报错内容如下
2022-12-15 18:23:01,002 - Wechaty - INFO - receive message <Message#message_type_text[🗣 Contact <wxid_> <> ding>
Exception in callback AsyncIOEventEmitter._emit_run..callback(<Task finishe...ot iterable")>) at C:\Program Files\Python37\lib\site-packages\pyee\asyncio.py:65
handle: <Handle AsyncIOEventEmitter._emit_run..callback(<Task finishe...ot iterable")>) at C:\Program Files\Python37\lib\site-packages\pyee\asyncio.py:65>
Traceback (most recent call last):
File "C:\Program Files\Python37\lib\asyncio\events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "C:\Program Files\Python37\lib\site-packages\pyee\asyncio.py", line 71, in callback
self.emit("error", exc)
File "C:\Program Files\Python37\lib\site-packages\wechaty\wechaty.py", line 332, in emit
return super().emit(event, *args, **kwargs)
File "C:\Program Files\Python37\lib\site-packages\pyee\base.py", line 179, in emit
self._emit_handle_potential_error(event, args[0] if args else None)
File "C:\Program Files\Python37\lib\site-packages\pyee\base.py", line 139, in _emit_handle_potential_error
raise error
File "dialog.py", line 252, in on_message
if text in self.hold or text[1:] in self.hold:
TypeError: argument of type 'NoneType' is not iterable