python-wechaty-getting-started
python-wechaty-getting-started copied to clipboard
Friendship.search方法还能用吗?
运行
contact: Contact = await self.Friendship.search( phone='183********' )
await contact.ready()
报这个错误
2022-09-02 13:54:14,474 - FriendShip - INFO - search() <<class 'abc.Friendship'>, None, 183********>
2022-09-02 13:54:14,976 - Wechaty - ERROR - internal error <'NoneType' object has no attribute 'ready'>
我运行Friendship.search就没成功过,想知道这个功能现在还能用吗?还是说不稳定?
contact variable can be None, so you should check if it's valid.
If you can't search anything at all, so it's actually a bug. and you can give us more about your environment:
- related package:
pip list | grep wechaty - version of wechaty docker image
there is my environment
wechaty 0.8.67
wechaty-grpc 0.20.19
wechaty-puppet 0.4.21
wechaty-puppet-service 0.8.10