summaryrefslogtreecommitdiff
path: root/searx/locales.py
diff options
context:
space:
mode:
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 ea9af9438..d7592df3d 100644
--- a/searx/locales.py
+++ b/searx/locales.py
@@ -152,7 +152,7 @@ def locales_initialize():
def region_tag(locale: babel.Locale) -> str:
"""Returns SearXNG's region tag from the locale (e.g. zh-TW , en-US)."""
if not locale.territory:
- raise ValueError('%s missed a territory')
+ raise ValueError('babel.Locale %s: missed a territory' % locale)
return locale.language + '-' + locale.territory