Skip to content

Commit

Permalink
Fixing on_ticker handler
Browse files Browse the repository at this point in the history
  • Loading branch information
alparamonov committed Mar 31, 2021
1 parent 1c96b16 commit 4a4edbf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/yliveticker_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def on_msg(ws, msg):
} == msg

yticker = YLiveTicker(on_ticker=on_msg)
yticker.on_message(
yticker.on_message(None,
"CgRNU0ZUFYVrMUMY0KLMjcNcKgNOTVMwCDgBRZ\
+B3L9IuPn8CVU0IjRDXYVrMUNlQApHwNgBBA=="
)
2 changes: 1 addition & 1 deletion yliveticker/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ def on_message(self, ws, message):
if self.on_ticker is None:
print(json.dumps(data))
else:
self.on_ticker(data)
self.on_ticker(ws, data)

def on_error(self, ws, error):
if self.on_custom_error is None:
Expand Down

0 comments on commit 4a4edbf

Please sign in to comment.