From 02888488e746ccaa44025e4c918c345568376a6e Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 7 Sep 2011 21:07:24 +0200 Subject: [PATCH] fireinfo: Fix for invalid profile. --- www/webapp/ui_modules.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/www/webapp/ui_modules.py b/www/webapp/ui_modules.py index 0e7b7a37..b18547d2 100644 --- a/www/webapp/ui_modules.py +++ b/www/webapp/ui_modules.py @@ -193,9 +193,10 @@ class StasyTableModule(UIModule): locales = tornado.locale.LOCALE_NAMES _items = [] for k, v in items: - for code, locale in locales.items(): - if code.startswith(k): - k = locale["name"].split()[0] + if k: + for code, locale in locales.items(): + if code.startswith(k): + k = locale["name"].split()[0] _items.append((k, v)) items = _items -- 2.47.3