diff --git a/src/openflexure_microscope_server/things/camera/__init__.py b/src/openflexure_microscope_server/things/camera/__init__.py index f494f01b..8df0cfa7 100644 --- a/src/openflexure_microscope_server/things/camera/__init__.py +++ b/src/openflexure_microscope_server/things/camera/__init__.py @@ -638,7 +638,7 @@ class BaseCamera(OFMThing, ABC): image = self._capture_image(capture_mode=capture_mode) success = True - continue + break except TimeoutError: self.logger.warning( f"Attempt {capture_attempts + 1} to capture image timed out. "