commit: 6765823c56ed74d56ce402f7df6fe63cca7fe8fe
parent d4d2dd9cb30df9a7d3ffcaf574b59f66d0f8917c
Author: Alexandre Flament <alex@al-f.net>
Date: Sat, 30 May 2015 12:37:18 +0200
[fix] set engine.safesearch to False if not defined
Diffstat:
1 file changed, 3 insertions(+), 0 deletions(-)
diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py
@@ -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']