Log saving errors in activities #1703

This commit is contained in:
Tomeu Vizoso 2010-02-06 13:11:22 +01:00 committed by Simon Schampijer
parent 63a5dcef05
commit d006092d37

View File

@ -522,7 +522,7 @@ class Activity(Window, gtk.Container):
if self._closing: if self._closing:
self._show_keep_failed_dialog() self._show_keep_failed_dialog()
self._closing = False self._closing = False
logging.debug('Error saving activity object to datastore: %s', err) raise RuntimeError('Error saving activity object to datastore: %s', err)
def _cleanup_jobject(self): def _cleanup_jobject(self):
if self._jobject: if self._jobject:
@ -774,7 +774,7 @@ class Activity(Window, gtk.Container):
try: try:
self.save() self.save()
except: except:
logging.info(traceback.format_exc()) logging.exception('Error saving activity object to datastore')
self._show_keep_failed_dialog() self._show_keep_failed_dialog()
return False return False