mirror of
				https://github.com/searxng/searxng.git
				synced 2025-11-03 19:17:07 -05:00 
			
		
		
		
	[fix] handle missing mapsettings
This commit is contained in:
		
							parent
							
								
									3a57a1a0d0
								
							
						
					
					
						commit
						fa26afafd8
					
				@ -130,7 +130,8 @@ class MapSetting(Setting):
 | 
				
			|||||||
        self.key = data
 | 
					        self.key = data
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def save(self, name, resp):
 | 
					    def save(self, name, resp):
 | 
				
			||||||
        resp.set_cookie(name, bytes(self.key), max_age=COOKIE_MAX_AGE)
 | 
					        if hasattr(self, 'key'):
 | 
				
			||||||
 | 
					            resp.set_cookie(name, bytes(self.key), max_age=COOKIE_MAX_AGE)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
class SwitchableSetting(Setting):
 | 
					class SwitchableSetting(Setting):
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user