Skip to content

Commit f3022d4

Browse files
committed
Propagate exception when moves are cancelled
This ensures an action using the stage is cancelled properly, rather than the stage swallowing the cancellation.
1 parent 0ccc8f7 commit f3022d4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/labthings_sangaboard/proscan.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ def move_relative(self, cancel: CancelHook, block_cancellation: bool=False, x: O
9393
try:
9494
while self.is_moving:
9595
cancel.sleep(0.05)
96-
except InvocationCancelledError:
97-
logging.info("Aborting move due to invocation cancellation, using `I`,")
96+
except InvocationCancelledError as e:
9897
self.query("I")
98+
raise e
9999
self.moving=False
100100

101101
@thing_property

0 commit comments

Comments
 (0)