mirror of
https://github.com/searx/searx
synced 2025-08-30 22:16:19 +00:00
[fix] set engine.safesearch to False if not defined
This commit is contained in:
@@ -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']
|
||||
|
||||
|
Reference in New Issue
Block a user