Closed 0kuang closed 3 years ago
https://github.com/wechaty/python-wechaty/blob/0eaebb04826cd45031802b4dd76137f48d8a13c6/src/wechaty/user/contact.py#L293
Maybe it is: if self.payload is None or self.payload.friend is None:
if self.payload is None or self.payload.friend is None:
It doesn't affect the result of the method but not beautiful.
Oh yes, this simple code, which is the early code, is ugly for python-wechaty. It will be improved later. Thanks for your issue to describe it.
Fixed in Master Branch.
https://github.com/wechaty/python-wechaty/blob/0eaebb04826cd45031802b4dd76137f48d8a13c6/src/wechaty/user/contact.py#L293
Maybe it is:
if self.payload is None or self.payload.friend is None:
It doesn't affect the result of the method but not beautiful.