[hamster-applet] don't die if category is missing
- From: Toms Baugis <tbaugis src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [hamster-applet] don't die if category is missing
- Date: Tue, 19 Jan 2010 13:11:36 +0000 (UTC)
commit 85bc6aef51c3a58cd2c6be3b4e41541ba57f3bd9
Author: Toms Bauģis <toms baugis gmail com>
Date: Tue Jan 19 13:11:19 2010 +0000
don't die if category is missing
hamster/applet.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/hamster/applet.py b/hamster/applet.py
index 93d0f72..2caebba 100755
--- a/hamster/applet.py
+++ b/hamster/applet.py
@@ -642,7 +642,7 @@ class HamsterApplet(object):
# check if maybe there is no need to switch, as field match:
if self.last_activity and \
self.last_activity['name'].lower() == activity['name'].lower() and \
- self.last_activity['category'].lower() == activity['category'].lower() and \
+ (self.last_activity['category'] or "").lower() == (activity['category'] or "").lower() and \
", ".join(self.last_activity['tags']).lower() == ", ".join(activity['tags']).lower():
return
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]