From 51111c2594fc7059df03b7a9d3fcf27c022ba804 Mon Sep 17 00:00:00 2001 From: Marc Abonce Seguin Date: Sun, 6 Jan 2019 20:48:11 -0600 Subject: [PATCH] [fix] always set langauge_aliases even if it's empty --- searx/engines/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 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'):