From 873968877b1fca57c2d06424aeeede58f0893659 Mon Sep 17 00:00:00 2001 From: Julian Stirling Date: Mon, 17 Nov 2025 15:00:58 +0000 Subject: [PATCH] Log warning rather than error if the named background detector doesn't exist to prevent not booting if detectors change --- src/openflexure_microscope_server/things/camera/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openflexure_microscope_server/things/camera/__init__.py b/src/openflexure_microscope_server/things/camera/__init__.py index 98e84ad9..1bb3bcef 100644 --- a/src/openflexure_microscope_server/things/camera/__init__.py +++ b/src/openflexure_microscope_server/things/camera/__init__.py @@ -641,7 +641,7 @@ class BaseCamera(lt.Thing): def detector_name(self, name: str) -> None: """Validate and set detector_name.""" if name not in self.background_detectors: - raise ValueError(f"{name} is not a valid background detector name") + LOGGER.warning(f"{name} is not a valid background detector name.") self._detector_name = name @property