mirror of
https://github.com/searxng/searxng.git
synced 2024-12-23 09:46:31 +00:00
[fix] always set langauge_aliases even if it's empty
This commit is contained in:
parent
5568f24d6c
commit
51111c2594
1 changed files with 1 additions and 2 deletions
|
@ -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'):
|
||||
|
|
Loading…
Reference in a new issue