From 44e3a89faf6b695409c247fe30d18f65cddeb516 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 22 Oct 2013 17:59:56 +0000 Subject: [PATCH] another stat fix --- pandora/user/statistics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/user/statistics.py b/pandora/user/statistics.py index 98cb27f6..0ccb7be4 100644 --- a/pandora/user/statistics.py +++ b/pandora/user/statistics.py @@ -116,7 +116,7 @@ class Statistics(dict): name = {} for key in ['system', 'browser']: - version = item[key]; + version = item[key] if version: name[key] = get_name(key, version) if name[key]: @@ -125,7 +125,7 @@ class Statistics(dict): key = key + 'version'; self._increment(self[mode][key], version) - if name['system'] and name['browser']: + if name.get('system') and name.get('browser'): name = name['system'] + ' / ' + name['browser'] self._increment(self[mode]['systemandbrowser'], name)