diff options
author | Alexandre Flament <alex@al-f.net> | 2015-05-30 12:37:18 +0200 |
---|---|---|
committer | Alexandre Flament <alex@al-f.net> | 2015-05-30 12:37:18 +0200 |
commit | 6765823c56ed74d56ce402f7df6fe63cca7fe8fe (patch) | |
tree | ff8df97d722d0a5331c55808f6a570dc96fb05c9 | |
parent | d4d2dd9cb30df9a7d3ffcaf574b59f66d0f8917c (diff) | |
download | searxng-6765823c56ed74d56ce402f7df6fe63cca7fe8fe.tar.gz searxng-6765823c56ed74d56ce402f7df6fe63cca7fe8fe.zip |
[fix] set engine.safesearch to False if not defined
-rw-r--r-- | searx/engines/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
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'] |