Commit 951cfb6b authored by Joel Collins's avatar Joel Collins
Browse files

Fixed exception caused by applying invalid settings to picamera

parent 4b9aab04
Loading
Loading
Loading
Loading
+11 −10
Original line number Diff line number Diff line
@@ -175,6 +175,7 @@ class StreamingCamera(BaseCamera):
                # PiCamera parameters (applied directly to PiCamera object)
                if 'picamera_settings' in config:  # If new settings are given
                    for key, value in config['picamera_settings'].items():  # For each given setting
                        if hasattr(self.camera, key):
                            self.config['picamera_settings'][key] = None  # Add the key to the list of returned settings
                            logging.debug("Setting parameter {}: {}".format(key, config['picamera_settings'][key]))