hamster-applet r449 - trunk/hamster



Author: jojeda
Date: Thu Aug 28 07:28:33 2008
New Revision: 449
URL: http://svn.gnome.org/viewvc/hamster-applet?rev=449&view=rev

Log:

* hamster/hamster-applet.py: Fixed fail on exit when there is no 
  end time on the las activity.


Modified:
   trunk/hamster/hamster-applet.py

Modified: trunk/hamster/hamster-applet.py
==============================================================================
--- trunk/hamster/hamster-applet.py	(original)
+++ trunk/hamster/hamster-applet.py	Thu Aug 28 07:28:33 2008
@@ -86,7 +86,7 @@
     if config.get_stop_on_shutdown():
         from hamster import storage
         last_activity = storage.get_last_activity()
-        if last_activity['end_time'] == None:
+        if last_activity and last_activity['end_time'] == None:
             storage.touch_fact(last_activity)
         
     gtk.main_quit()



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