Skip to content

Commit 8c258bf

Browse files
committed
add additional try/except
1 parent bfa1752 commit 8c258bf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

plugwise_usb/nodes/circle.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -859,7 +859,10 @@ async def _clock_synchronize_scheduler(self) -> None:
859859
try:
860860
while True:
861861
await sleep(60)
862-
await self.clock_synchronize()
862+
try:
863+
await self.clock_synchronize()
864+
except Exception:
865+
_LOGGER.exception("Clock synchronisation failed for %s", self.name)
863866
except CancelledError:
864867
_LOGGER.debug("Clock sync scheduler cancelled for %s", self.name)
865868
raise

0 commit comments

Comments
 (0)