We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b5a05f commit ddb29a7Copy full SHA for ddb29a7
poloniex/__init__.py
@@ -716,7 +716,7 @@ def _getChannelName(self, id):
716
717
def on_open(self, *ws):
718
for chan in self.channels:
719
- if self.channels[chan]['sub']:
+ if 'sub' in self.channels[chan] and self.channels[chan]['sub']:
720
self.subscribe(chan)
721
722
def on_message(self, data):
@@ -855,7 +855,7 @@ def stopws(self, wait=1):
855
self._running = False
856
# unsubscribe from subs
857
858
- if 'sub' in self.channels[chan] and self.channels[chan]['sub'] == True:
859
self.unsubscribe(chan)
860
sleep(wait)
861
try:
0 commit comments