Fixed checking if LST path exists

This commit is contained in:
Joel Collins 2020-01-30 14:21:40 +00:00
parent 953a5d7004
commit 945c7e4e27

View file

@ -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": {},
}