Skip to content

Commit

Permalink
Merge pull request #106 from Flowelcat/master
Browse files Browse the repository at this point in the history
Fixed error "Error: 2 - string indices must be integers", issue #98
  • Loading branch information
oliver-zehentleitner authored Sep 9, 2020
2 parents fca0b16 + e3e4b88 commit 9aa85fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ async def __aenter__(self):
self.handler_binance_websocket_api_manager.set_restart_request(self.stream_id)
sys.exit(1)
try:
if uri['code'] == -2014 or uri['code'] == -2015 or uri['code'] == -2008:
if isinstance(uri, dict) and (uri['code'] == -2014 or uri['code'] == -2015 or uri['code'] == -2008):
# -2014 = API-key format invalid
# -2015 = Invalid API-key, IP, or permissions for action
# -2008 = Invalid Api-Key ID
Expand Down

0 comments on commit 9aa85fb

Please sign in to comment.