Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6765823c authored by Alexandre Flament's avatar Alexandre Flament
Browse files

[fix] set engine.safesearch to False if not defined

parent d4d2dd9c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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']