From 7052917ff9d37d7a709f6df15becf568ad3152fe Mon Sep 17 00:00:00 2001 From: jaknapper Date: Tue, 20 May 2025 14:40:13 +0100 Subject: [PATCH] capture_image in stub raises NotImplemented --- 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 4916e40f..c1fb9a17 100644 --- a/src/openflexure_microscope_server/things/camera/__init__.py +++ b/src/openflexure_microscope_server/things/camera/__init__.py @@ -201,7 +201,7 @@ class CameraStub(BaseCamera): @thing_action def capture_image(self, stream_name, wait): """Capture a PIL image from stream stream_name with timeout wait""" - raise Exception + raise NotImplementedError("Cameras must not inherit from CameraStub") CameraDependency = direct_thing_client_dependency(CameraStub, "/camera/")