From 6765823c56ed74d56ce402f7df6fe63cca7fe8fe Mon Sep 17 00:00:00 2001 From: Alexandre Flament Date: Sat, 30 May 2015 12:37:18 +0200 Subject: [PATCH] [fix] set engine.safesearch to False if not defined --- searx/engines/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index 18a45d851..42e1f08bc 100644 --- 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']