mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-17 00:25:23 +03:00
fix yaml returning none
This commit is contained in:
parent
1a7afe58fc
commit
ee10f00758
@ -29,6 +29,10 @@ def migrate_frigate_config(config_file: str):
|
|||||||
with open(config_file, "r") as f:
|
with open(config_file, "r") as f:
|
||||||
config: dict[str, dict[str, any]] = yaml.load(f)
|
config: dict[str, dict[str, any]] = yaml.load(f)
|
||||||
|
|
||||||
|
if config is None:
|
||||||
|
logger.error(f"Failed to load config at {config_file}")
|
||||||
|
return
|
||||||
|
|
||||||
previous_version = str(config.get("version", "0.13"))
|
previous_version = str(config.get("version", "0.13"))
|
||||||
|
|
||||||
if previous_version == CURRENT_CONFIG_VERSION:
|
if previous_version == CURRENT_CONFIG_VERSION:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user