Skip to content

Commit f7a3409

Browse files
committed
fix(fr3 desk): error when circle is not in event dict
1 parent 9ce0c9f commit f7a3409

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python/rcsss/control/fr3_desk.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ def take_control(self, force: bool = False) -> bool:
339339
) as websocket:
340340
while True:
341341
event: dict = json_module.loads(websocket.recv(timeout))
342-
if event["circle"]:
342+
if event.get("circle", False):
343343
break
344344
self._token = Token(str(response["id"]), self._username, response["token"])
345345
with open(token_path, "w") as f:

0 commit comments

Comments
 (0)