diff --git a/src/sugar/activity/activity.py b/src/sugar/activity/activity.py index f222f8ca..35082cc1 100644 --- a/src/sugar/activity/activity.py +++ b/src/sugar/activity/activity.py @@ -823,6 +823,7 @@ class Activity(Window, gtk.Container): try: self.save() except: + # pylint: disable=W0702 logging.exception('Error saving activity object to datastore') self._show_keep_failed_dialog() return False diff --git a/src/sugar/util.py b/src/sugar/util.py index 25a5ab23..baec3b13 100644 --- a/src/sugar/util.py +++ b/src/sugar/util.py @@ -335,6 +335,7 @@ def _cleanup_temp_files(): try: os.unlink(path) except: + # pylint: disable=W0702 logging.exception('Exception occured in _cleanup_temp_files') atexit.register(_cleanup_temp_files)