diff --git a/src/pylutron_caseta/smartbridge.py b/src/pylutron_caseta/smartbridge.py index c120f4d..0d11716 100644 --- a/src/pylutron_caseta/smartbridge.py +++ b/src/pylutron_caseta/smartbridge.py @@ -610,8 +610,6 @@ async def _monitor(self): try: while True: await self._monitor_once() - except asyncio.CancelledError: - pass except Exception as ex: _LOG.critical("monitor loop has exited", exc_info=1) if not self._login_completed.done(): @@ -856,8 +854,6 @@ async def _login(self): if not self._login_completed.done(): self._login_completed.set_result(None) - except asyncio.CancelledError: - pass except Exception as ex: if not self._login_completed.done(): self._login_completed.set_exception(ex) @@ -872,8 +868,6 @@ async def _ping(self): except asyncio.TimeoutError: _LOG.warning("ping was not answered. closing connection.") self._leap.close() - except asyncio.CancelledError: - pass except Exception: _LOG.warning("ping failed. closing connection.", exc_info=1) self._leap.close()