Ensure the frigate config validators are also checked when saving config

This commit is contained in:
Nicolas Mowen 2023-04-14 06:50:46 -06:00 committed by GitHub
parent dee471e9e9
commit d790fa2385
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -759,6 +759,7 @@ def config_save():
# Validate the config schema # Validate the config schema
try: try:
new_yaml = FrigateConfig.parse_raw(new_config) new_yaml = FrigateConfig.parse_raw(new_config)
check_runtime = new_yaml.runtime_config
except Exception as e: except Exception as e:
return make_response( return make_response(
jsonify( jsonify(