mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-03 19:17:07 -05:00 
			
		
		
		
	[enh] skipping empty/nonetype categories
This commit is contained in:
		
							parent
							
								
									4cc391169a
								
							
						
					
					
						commit
						1a2cf205f9
					
				@ -59,6 +59,9 @@ for section in engines_config.sections():
 | 
			
		||||
        if param_name == 'engine':
 | 
			
		||||
            continue
 | 
			
		||||
        if param_name == 'categories':
 | 
			
		||||
            if engines_config.get(section, param_name) == 'none':
 | 
			
		||||
                engine.categories = []
 | 
			
		||||
            else:
 | 
			
		||||
                engine.categories = map(str.strip, engines_config.get(section, param_name).split(','))
 | 
			
		||||
            continue
 | 
			
		||||
        setattr(engine, param_name, engines_config.get(section, param_name))
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user