deskbar-applet r1834 - in trunk: . deskbar/core
- From: sebp svn gnome org
- To: svn-commits-list gnome org
- Subject: deskbar-applet r1834 - in trunk: . deskbar/core
- Date: Fri, 11 Jan 2008 22:37:35 +0000 (GMT)
Author: sebp
Date: Fri Jan 11 22:37:35 2008
New Revision: 1834
URL: http://svn.gnome.org/viewvc/deskbar-applet?rev=1834&view=rev
Log:
Catch Exception when loading history to prevent that bugzilla pops up when history file is corrupted (fixes bug #504916)
Modified:
trunk/ChangeLog
trunk/deskbar/core/DeskbarHistory.py
Modified: trunk/deskbar/core/DeskbarHistory.py
==============================================================================
--- trunk/deskbar/core/DeskbarHistory.py (original)
+++ trunk/deskbar/core/DeskbarHistory.py Fri Jan 11 22:37:35 2008
@@ -125,8 +125,10 @@
except ImportError:
# The module is not available anymore
pass
- except EOFError:
+ except Exception, e:
# The history file is corrupted
+ logging.error("Could not restore history")
+ logging.exception(e)
pass
def save (self):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]