forked from zaclys/searxng
[fix] set engine.safesearch to False if not defined
This commit is contained in:
parent
d4d2dd9cb3
commit
6765823c56
|
@ -71,6 +71,9 @@ def load_engine(engine_data):
|
|||
if not hasattr(engine, 'language_support'):
|
||||
engine.language_support = True
|
||||
|
||||
if not hasattr(engine, 'safesearch'):
|
||||
engine.safesearch = False
|
||||
|
||||
if not hasattr(engine, 'timeout'):
|
||||
engine.timeout = settings['server']['request_timeout']
|
||||
|
||||
|
|
Loading…
Reference in New Issue