From: Michael Tremer Date: Mon, 26 Oct 2015 23:57:15 +0000 (+0100) Subject: locale: Fix fallback to default locale X-Git-Tag: 004~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac5bd9d3d9316d73458b57bebf73b3a57b7e4182;p=telemetry.git locale: Fix fallback to default locale A typo caused an exception. Signed-off-by: Michael Tremer --- diff --git a/src/collecty/locales.py b/src/collecty/locales.py index 199ab49..917a4db 100644 --- a/src/collecty/locales.py +++ b/src/collecty/locales.py @@ -121,4 +121,4 @@ def get_closest(*langs): pass def get(*langs): - return get_closest(*langs) or _locale.get(DEFAULT_LOCALE, None) + return get_closest(*langs) or _locales.get(DEFAULT_LOCALE, None)