diff --git a/custom_components/monitor_docker/helpers.py b/custom_components/monitor_docker/helpers.py index 41acc98..ca86508 100644 --- a/custom_components/monitor_docker/helpers.py +++ b/custom_components/monitor_docker/helpers.py @@ -65,7 +65,7 @@ PRECISION, ) -VERSION = "1.14b1" +VERSION = "1.14b2" _LOGGER = logging.getLogger(__name__) @@ -762,9 +762,14 @@ async def _run(self): self._name, ) - await asyncio.sleep(self._interval) except concurrent.futures._base.CancelledError: + _LOGGER.debug( + "[%s] %s: Container received concurrent.futures._base.CancelledError", + self._instance, + self._name, + ) pass + break except Exception as err: _LOGGER.error( "[%s] %s: Container not available anymore (3) (%s)", @@ -774,6 +779,9 @@ async def _run(self): exc_info=True, ) + # Sleep in normal and exception situation + await asyncio.sleep(self._interval) + ############################################################# async def _run_container_info(self): """Get container information, but we can not get