Skip to content
This repository has been archived by the owner on Jul 20, 2020. It is now read-only.

Commit

Permalink
Don't tamper with received data, keep messages in line with the API d…
Browse files Browse the repository at this point in the history
…ocumentation
  • Loading branch information
petros-double-test1 committed Jan 24, 2018
1 parent bb70c52 commit 264d500
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hitbtc/connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ def _on_message(self, ws, message):
else:
try:
method = decoded_message['method']
symbol = decoded_message['params'].pop('symbol')
params = decoded_message.pop('params')
symbol = decoded_message['params']['symbol']
params = decoded_message['params']
except Exception as e:
self.log.exception(e)
self.log.error(decoded_message)
Expand Down

0 comments on commit 264d500

Please sign in to comment.