[hamster-applet] don't die if the activity to switch to can't be found when workspace tracking is enabled



commit d5c4e9eae437328fb07e6ebecc37a234dbf38553
Author: Toms Bauģis <toms baugis gmail com>
Date:   Sun May 22 10:29:02 2011 +0300

    don't die if the activity to switch to can't be found when workspace tracking is enabled

 src/hamster/storage.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/hamster/storage.py b/src/hamster/storage.py
index b7e7159..0462115 100644
--- a/src/hamster/storage.py
+++ b/src/hamster/storage.py
@@ -295,7 +295,7 @@ class Storage(dbus.service.Object):
         category_id = category_id or None
 
         if activity:
-            return dict(self.__get_activity_by_name(activity, category_id, resurrect))
+            return dict(self.__get_activity_by_name(activity, category_id, resurrect) or {})
         else:
             return {}
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]