Log saving errors in activities #1703
This commit is contained in:
parent
63a5dcef05
commit
d006092d37
@ -522,7 +522,7 @@ class Activity(Window, gtk.Container):
|
||||
if self._closing:
|
||||
self._show_keep_failed_dialog()
|
||||
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):
|
||||
if self._jobject:
|
||||
@ -774,7 +774,7 @@ class Activity(Window, gtk.Container):
|
||||
try:
|
||||
self.save()
|
||||
except:
|
||||
logging.info(traceback.format_exc())
|
||||
logging.exception('Error saving activity object to datastore')
|
||||
self._show_keep_failed_dialog()
|
||||
return False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user