Skip to content

Commit feff277

Browse files
authored
Merge pull request #310 from cybertron-ninja/issue-in-notify-websocket
Issue in notify websocket
2 parents a72ceee + 3fcec80 commit feff277

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea/
2+
venv/
23
# Byte-compiled / optimized / DLL files
34
__pycache__/
45
*.py[cod]

bitsharesapi/websocket.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,8 @@ def on_message(self, reply, *args, **kwargs):
237237
If we receive a ``notice``, we hand over post-processing and signalling of
238238
events to ``process_notice``.
239239
"""
240+
if isinstance(reply, websocket.WebSocketApp):
241+
reply = args[0]
240242
log.debug("Received message: %s" % str(reply))
241243
data = {}
242244
try:

0 commit comments

Comments
 (0)