mirror of
				https://github.com/blakeblackshear/frigate.git
				synced 2025-10-27 10:52:11 +01:00 
			
		
		
		
	Ensure the frigate config validators are also checked when saving config (#6069)
This commit is contained in:
		
							parent
							
								
									6e0faa930a
								
							
						
					
					
						commit
						3b62ff093a
					
				@ -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(
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user