Skip to content

Commit 9c22cab

Browse files
committed
Re-raise CancelledError after logging in control_output
1 parent a6b5f59 commit 9c22cab

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

paradox/paradox.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ async def control_output(self, output, command) -> bool:
516516
logger.error("control_output is not implemented for this alarm type")
517517
except asyncio.CancelledError:
518518
logger.error("control_output canceled")
519+
raise
519520
except asyncio.TimeoutError:
520521
logger.error("control_output timeout")
521522
self.request_status_refresh()
@@ -535,6 +536,7 @@ async def control_output(self, output, command) -> bool:
535536
logger.error("control_module_pgm_outputs is not implemented for this alarm type")
536537
except asyncio.CancelledError:
537538
logger.error("control_output canceled")
539+
raise
538540
except asyncio.TimeoutError:
539541
logger.error("control_output timeout")
540542
if accepted:

0 commit comments

Comments
 (0)