Skip to content

Commit 756bd4a

Browse files
committed
chore: add back generator exception handling
1 parent 8ff9479 commit 756bd4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roborock/mqtt/roborock_session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ async def _run_task(self, start_future: asyncio.Future[None] | None) -> None:
125125
except Exception as err:
126126
# This error is thrown when the MQTT loop is cancelled
127127
# and the generator is not stopped.
128-
if "generator didn't stop" in str(err): # or "generator didn't yield" in str(err):
128+
if "generator didn't stop" in str(err) or "generator didn't yield" in str(err):
129129
_LOGGER.debug("MQTT loop was cancelled")
130130
return
131131
if start_future:

0 commit comments

Comments
 (0)