hamster-applet r604 - branches/gnome-2-24/hamster
- From: tbaugis svn gnome org
- To: svn-commits-list gnome org
- Subject: hamster-applet r604 - branches/gnome-2-24/hamster
- Date: Fri, 24 Oct 2008 15:55:16 +0000 (UTC)
Author: tbaugis
Date: Fri Oct 24 15:55:16 2008
New Revision: 604
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=604&view=rev
Log:
check for existance before trying to delete a fact
Modified:
branches/gnome-2-24/hamster/storage.py
Modified: branches/gnome-2-24/hamster/storage.py
==============================================================================
--- branches/gnome-2-24/hamster/storage.py (original)
+++ branches/gnome-2-24/hamster/storage.py Fri Oct 24 15:55:16 2008
@@ -51,9 +51,9 @@
def remove_fact(self, fact_id):
fact = self.get_fact(fact_id)
- result = self.__remove_fact(fact_id)
- self.dispatch('day_updated', fact['start_time'])
- return result
+ if fact:
+ self.__remove_fact(fact_id)
+ self.dispatch('day_updated', fact['start_time'])
def get_sorted_activities(self):
return self.__get_sorted_activities()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]