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

fix callback #502

Merged
merged 1 commit into from
Jan 26, 2021
Merged

fix callback #502

merged 1 commit into from
Jan 26, 2021

Conversation

Lu-Yi-Hsun
Copy link
Contributor

when my iqoptionapi use last version websocket-client get this error

error from callback <bound method WebsocketClient.on_message of <iqoptionapi.ws.client.WebsocketClient object at 0x7f174fdb5e48>>: on_message() missing 1 required positional argument: 'message'
  File "/usr/lib/python3.7/site-packages/websocket/_app.py", line 343, in _callback
   callback(*args)

change the code
callback(*args)->callback(self, *args)
can fix my problem

@engn33r
Copy link
Collaborator

engn33r commented Feb 15, 2021

Follow-up comment: both the "if" and "else" branch result in the same callback(self, *args) call. This is how the code was before PR #442, which broke other functions and was partially reverted. I properly reverted this portion of the code with commit 3112b7d

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

Successfully merging this pull request may close these issues.

None yet

2 participants