Crypto-toolbox / btfxwss

Bitfinex Websocket API Client written in Python3
MIT License
284 stars 125 forks source link

Test code Attribute Error #131

Open adelibasi opened 6 years ago

adelibasi commented 6 years ago

I am not good about websocket. So I used example code to understand. However, I faced with the following error,

AttributeError Traceback (most recent call last)

in () 20 wss.start() 21 ---> 22 while not wss.conn.connected.is_set(): 23 time.sleep(1) 24 AttributeError: 'bool' object has no attribute 'is_set' Could you help me?
deepbrook commented 6 years ago

Try this

while not wss.conn.connected:
....

I believe this was converted to a bool instead of a Event object.