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

Arguments mismatch - on_close() #4

Open
kathir-t opened this issue Jun 15, 2021 · 1 comment
Open

Arguments mismatch - on_close() #4

kathir-t opened this issue Jun 15, 2021 · 1 comment

Comments

@kathir-t
Copy link

The error:

[2021-06-15 22:54:29,341] {_logging.py:61} - error from callback <function WhatsApp.connect.. at 0x7f9e55f82700>: on_close() takes 1 positional argument but 2 were given

The cause:

In Client.py L292 , ws is passed as a parameter to the on_close() method, whilst the actual method does not need it.

@kathir-t kathir-t changed the title Arguments mismatch Arguments mismatch - on_close() Jun 15, 2021
kathir-t pushed a commit to kathir-t/whatsapp-web-graph that referenced this issue Jun 15, 2021
@shashwat001
Copy link
Owner

You are right, but need to add ws to the function argument, as python library passes it while calling.

kathir-t pushed a commit to kathir-t/whatsapp-web-graph that referenced this issue Jul 1, 2021
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

2 participants