summaryrefslogtreecommitdiff
path: root/searx/locales.py
diff options
context:
space:
mode:
authorpankaj <pankwings@gmail.com>2023-05-19 19:35:29 +0530
committerpankaj <pankwings@gmail.com>2023-05-19 19:35:29 +0530
commit4900c091a6c88d58780d1ce8c4def0bd04c61270 (patch)
tree233d96215b4dd01f2026971f87257be7761d84f9 /searx/locales.py
parent50cd7e2b03dbce50a41d39aad9521dab6d2ff246 (diff)
downloadsearxng-4900c091a6c88d58780d1ce8c4def0bd04c61270.tar.gz
searxng-4900c091a6c88d58780d1ce8c4def0bd04c61270.zip
use logger.warning
logger.warn() is depricated. logger.warning is already being used in some files.
Diffstat (limited to 'searx/locales.py')
-rw-r--r--searx/locales.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/searx/locales.py b/searx/locales.py
index c765eb198..12066f3d7 100644
--- a/searx/locales.py
+++ b/searx/locales.py
@@ -460,7 +460,7 @@ def build_engine_locales(tag_list: List[str]):
for tag in tag_list:
locale = get_locale(tag)
if locale is None:
- logger.warn("build_engine_locales: skip locale tag %s / unknown by babel", tag)
+ logger.warning("build_engine_locales: skip locale tag %s / unknown by babel", tag)
continue
if locale.territory:
engine_locales[region_tag(locale)] = tag