Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when dealing with on_friendship, internal error <list index out of range> occurs #20

Closed
fish-ball opened this issue Jun 25, 2020 · 1 comment

Comments

@fish-ball
Copy link
Contributor

I'm trying to fix the bug wechaty/python-wechaty#74

And finally turns out that when the code run in to HostiePuppet.friendship_payload() the below error occured.

2020-06-25 19:28:48,885 - Wechaty - ERROR - internal error
ERROR:Wechaty:internal error

@fish-ball
Copy link
Contributor Author

Finally I found that the original treatment

        return FriendshipPayload(**response.to_dict())

is redundant, and leads to a wrong result.

Just return the response do the trick.

fish-ball added a commit to fish-ball/python-wechaty-puppet-hostie that referenced this issue Jun 25, 2020
wj-Mcat added a commit that referenced this issue Jun 29, 2020
Fix friendship_payload 'list index out of range issue (#20)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant