19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:30:27 +01:00
parent d1963a3c3a
commit 2d3ee4855a
7430 changed files with 2687981 additions and 2965473 deletions

View file

@ -66,7 +66,10 @@ def format_list(
# Some styles could be unavailable for the chosen locale
if style not in locale.list_patterns:
style = "standard"
return lists.format_list([str(el) for el in lst], style, locale)
try:
return lists.format_list([str(el) for el in lst], style, locale)
except KeyError:
return lists.format_list([str(el) for el in lst], 'standard', locale)
def py_to_js_locale(locale: str) -> str: