diff --git a/csaxs_bec/bec_ipython_client/plugins/flomni/flomni.py b/csaxs_bec/bec_ipython_client/plugins/flomni/flomni.py index 86c2499c..2465eb80 100644 --- a/csaxs_bec/bec_ipython_client/plugins/flomni/flomni.py +++ b/csaxs_bec/bec_ipython_client/plugins/flomni/flomni.py @@ -1090,17 +1090,18 @@ class FlomniSampleTransferMixin: if position == 0 and fsamx_pos > -160: print("Use GUI interface.") - if self.ftransfer_confirm_dialog("May the flomni stage be moved out for the sample change? Feedback will be disabled and alignment will be lost!", "y"): - - # if self.OMNYTools.yesno( - # "May the flomni stage be moved out for the sample change? Feedback will be disabled and alignment will be lost!", - # "y", - # ): + if self.ftransfer_confirm_dialog( + "May the flomni stage be moved out for the sample change? " + "Feedback will be disabled and alignment will be lost!", + "y", + ): print("OK. continue.") self.ftransfer_flomni_stage_out() else: - print("Stopping.") - return + raise FlomniError( + "Stage-out declined by user. Aborting sample transfer before any " + "gripper motion." + ) self.ensure_gripper_up() self.check_tray_in()