[hamster-applet] upon failure in refresh at least print out the error
- From: Toms Baugis <tbaugis src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [hamster-applet] upon failure in refresh at least print out the error
- Date: Sat, 28 Aug 2010 10:47:36 +0000 (UTC)
commit 5d4734e406e53bb24e4c704fa5d1b256c4c7723f
Author: Toms Bauģis <toms baugis gmail com>
Date: Sat Aug 28 11:46:04 2010 +0100
upon failure in refresh at least print out the error
src/hamster-time-tracker | 2 ++
src/hamster/applet.py | 2 ++
2 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/hamster-time-tracker b/src/hamster-time-tracker
index fbd840f..2380f75 100755
--- a/src/hamster-time-tracker
+++ b/src/hamster-time-tracker
@@ -145,6 +145,8 @@ class ProjectHamster(object):
try:
self.check_user()
trophies.check_ongoing(self.todays_facts)
+ except Exception, e:
+ logging.error("Error while refreshing: %s" % e)
finally: # we want to go on no matter what, so in case of any error we find out about it sooner
return True
diff --git a/src/hamster/applet.py b/src/hamster/applet.py
index fa0e946..595efc0 100755
--- a/src/hamster/applet.py
+++ b/src/hamster/applet.py
@@ -286,6 +286,8 @@ class HamsterApplet(object):
self.update_label()
self.check_user()
trophies.check_ongoing(self.todays_facts)
+ except Exception, e:
+ logging.error("Error while refreshing: %s" % e)
finally: # we want to go on no matter what, so in case of any error we find out about it sooner
return True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]