diff --git a/src/aare/devices/bec_worker.py b/src/aare/devices/bec_worker.py index ed7baa9d..e049dcd7 100644 --- a/src/aare/devices/bec_worker.py +++ b/src/aare/devices/bec_worker.py @@ -5,6 +5,7 @@ from typing import List, Optional from aarecommon.config.beamline import cfg_get, mx_beamline from aarecommon.config.logger import setup_logger from aarecommon.config.logger_events import log_timing +from aarecommon.config.util import suppress_output from aarecommon.errors.exception_handler import BECCommunicationError from aarecommon.models.beamline import MXBeamline from bec_ipython_client import BECIPythonClient @@ -383,7 +384,8 @@ class BECClientWorker: def get_flux_x10sa(self): try: - curr, max = bpm2flux() + with suppress_output(): + curr, max = bpm2flux() except Exception as e: logger.error(f"Could not get 10s flux from macro {e}") curr, max = 9e12, 9e12