Also handle partial timelapse settings gracefully

Server startup could fail if for whatever reason the timelapse settings
had lost their type value, since the dict was not merged with the
default values upon retrieval.
This commit is contained in:
Gina Häußge 2015-07-06 17:06:30 +02:00
parent 6906584892
commit 1eb3f84bce

View file

@ -68,7 +68,7 @@ def configureTimelapse(config=None, persist=False):
global current
if config is None:
config = settings().get(["webcam", "timelapse"])
config = settings().get(["webcam", "timelapse"], merged=True)
if current is not None:
current.unload()