1
0
Fork 0
mirror of https://github.com/searxng/searxng.git synced 2025-03-03 11:11:03 +00:00

[fix] handle missing mapsettings

This commit is contained in:
Adam Tauber 2017-01-21 20:08:08 +01:00
parent 3a57a1a0d0
commit fa26afafd8

View file

@ -130,6 +130,7 @@ class MapSetting(Setting):
self.key = data
def save(self, name, resp):
if hasattr(self, 'key'):
resp.set_cookie(name, bytes(self.key), max_age=COOKIE_MAX_AGE)