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:
parent
6906584892
commit
1eb3f84bce
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Reference in a new issue