Skip to content

Commit 2956e12

Browse files
committed
Fix exception handling for connection errors
1 parent 75a5839 commit 2956e12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yeelib/devices.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ async def send_command(self, method, params):
7979
else:
8080
try:
8181
response = (await reader.readline()).decode()
82-
except ConnectionError:
82+
except OSError:
8383
logger.exception("Connection error")
8484
socket.socket = None
8585
else:

0 commit comments

Comments
 (0)