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

Test code Attribute Error #131

Open
adelibasi opened this issue Apr 14, 2018 · 1 comment
Open

Test code Attribute Error #131

adelibasi opened this issue Apr 14, 2018 · 1 comment

Comments

@adelibasi
Copy link

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
Copy link
Collaborator

Try this

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

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants