From 40f53655e0498c4bae104e310f63cb5b1a6e3f23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Tcho=C5=84?= Date: Sat, 30 May 2026 17:27:29 +0200 Subject: [PATCH] You cannot `get_data_from_shared_memory` if data is an error report --- src/instamatic/camera/camera_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instamatic/camera/camera_client.py b/src/instamatic/camera/camera_client.py index 08536fbb..2825f05a 100644 --- a/src/instamatic/camera/camera_client.py +++ b/src/instamatic/camera/camera_client.py @@ -139,7 +139,7 @@ def _eval_dct(self, dct): else: raise RuntimeError(f'Received empty response when evaluating {dct=}') - if self.use_shared_memory and acquiring_image and data: + if status == 200 and self.use_shared_memory and acquiring_image and data: data = self.get_data_from_shared_memory(**data) if status == 200: