From ff16cb0fa9d1b1b7eae822f86fb442a543e4d027 Mon Sep 17 00:00:00 2001 From: Sascha Silbe Date: Fri, 15 Oct 2010 19:47:41 +0000 Subject: [PATCH] pylint cleanup: disable warnings for reasonable catch-all exception handlers Reviewed-by: James Cameron Acked-by: Simon Schampijer CC: Aleksey Lim --- src/sugar/activity/activity.py | 1 + src/sugar/util.py | 1 + 2 files changed, 2 insertions(+) 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)