From 945c7e4e27066f94b088c85dc79d1190a6dc53d1 Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Thu, 30 Jan 2020 14:21:40 +0000 Subject: [PATCH] Fixed checking if LST path exists --- openflexure_microscope/camera/pi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openflexure_microscope/camera/pi.py b/openflexure_microscope/camera/pi.py index 85628042..0f23d5f3 100644 --- a/openflexure_microscope/camera/pi.py +++ b/openflexure_microscope/camera/pi.py @@ -155,7 +155,7 @@ class PiCameraStreamer(BaseCamera): "numpy_resolution": self.numpy_resolution, "jpeg_quality": self.jpeg_quality, "picamera_lst_path": self.picamera_lst_path - if os.path.isfile(self.picamera_lst_path) + if (self.picamera_lst_path and os.path.isfile(self.picamera_lst_path)) else None, "picamera": {}, }