Skip to content

Commit c7d8069

Browse files
committed
switch to more specific exception
1 parent 7b8b011 commit c7d8069

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roborock/devices/local_channel.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ async def connect(self) -> None:
157157
# Perform protocol negotiation
158158
try:
159159
await self._hello()
160-
except Exception:
160+
except RoborockException:
161161
# If protocol negotiation fails, clean up the connection state
162162
self.close()
163163
raise

0 commit comments

Comments
 (0)