mirror of
https://github.com/searx/searx
synced 2025-08-31 14:38:23 +00:00
[fix] handle missing mapsettings
This commit is contained in:
@@ -130,7 +130,8 @@ class MapSetting(Setting):
|
||||
self.key = data
|
||||
|
||||
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):
|
||||
|
Reference in New Issue
Block a user