SearXNG is a free internet metasearch engine which aggregates results from various search services and databases. Users are neither tracked nor profiled.
Python bingbravedegoogleduckduckgogooglemetasearchprivacypythonqwantsearchsearch-enginesearxsearxngstartpageyahoo
[test.pyright] suppress unneeded error & warning messages
Markus Heisercf644b413e3c
diff --git a/manage b/manageindex 9e5b59fc7..cfba8aea8 100755--- a/manage+++ b/manage@@ -702,6 +702,7 @@ test.pyright() {pyenv.cmd npx --no-install pyright -p pyrightconfig-ci.json \| grep -v ".py$" \| grep -v '/engines/.*.py.* - warning: "logger" is not defined'\+ | grep -v '/plugins/.*.py.* - error: "logger" is not defined'\| grep -v '/engines/.*.py.* - warning: "supported_languages" is not defined' \| grep -v '/engines/.*.py.* - warning: "language_aliases" is not defined'dump_return $?diff --git a/searx/utils.py b/searx/utils.pyindex ffc9a39d6..abc330be2 100644--- a/searx/utils.py+++ b/searx/utils.py@@ -372,7 +372,7 @@ def _get_lang_to_lc_dict(lang_list: List[str]) -> Dict[str, str]:# babel's get_global contains all sorts of miscellaneous locale and territory related data# see get_global in: https://github.com/python-babel/babel/blob/master/babel/core.py-def _get_from_babel(lang_code: str, key: str):+def _get_from_babel(lang_code: str, key):match = get_global(key).get(lang_code.replace('-', '_'))# for some keys, such as territory_aliases, match may be a listif isinstance(match, str):