diff --git a/src/sugar/activity/activity.py b/src/sugar/activity/activity.py index dea36a06..c91a023c 100644 --- a/src/sugar/activity/activity.py +++ b/src/sugar/activity/activity.py @@ -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