diff options
author | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2019-01-06 20:48:11 -0600 |
---|---|---|
committer | Marc Abonce Seguin <marc-abonce@mailbox.org> | 2019-01-06 20:49:56 -0600 |
commit | 51111c2594fc7059df03b7a9d3fcf27c022ba804 (patch) | |
tree | d1112f1625b738a863e9bd0613e5d07cd8ad8576 | |
parent | 5568f24d6ca9ae9a7eca27c107982b2689e40105 (diff) | |
download | searxng-51111c2594fc7059df03b7a9d3fcf27c022ba804.tar.gz searxng-51111c2594fc7059df03b7a9d3fcf27c022ba804.zip |
[fix] always set langauge_aliases even if it's empty
-rw-r--r-- | searx/engines/__init__.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/searx/engines/__init__.py b/searx/engines/__init__.py index c2f9f3da4..f32b57202 100644 --- a/searx/engines/__init__.py +++ b/searx/engines/__init__.py @@ -113,8 +113,7 @@ def load_engine(engine_data): iso_lang not in getattr(engine, 'supported_languages'): language_aliases[iso_lang] = engine_lang - if language_aliases: - setattr(engine, 'language_aliases', language_aliases) + setattr(engine, 'language_aliases', language_aliases) # assign language fetching method if auxiliary method exists if hasattr(engine, '_fetch_supported_languages'): |