From 7eafbe9ce939813d47b6eb84b55a4ebbbd687947 Mon Sep 17 00:00:00 2001 From: Marco Pesenti Gritti Date: Fri, 19 Sep 2008 11:38:23 +0200 Subject: [PATCH] Failure to close descriptor is actually expected. Don't bloat the logs. --- src/sugar/activity/activityfactory.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/sugar/activity/activityfactory.py b/src/sugar/activity/activityfactory.py index ba536039..99f89978 100644 --- a/src/sugar/activity/activityfactory.py +++ b/src/sugar/activity/activityfactory.py @@ -62,8 +62,9 @@ def _close_fds(): for i in xrange(3, MAXFD): try: os.close(i) + # pylint: disable-msg=W0704 except Exception: - logging.error('Cannot close file file descriptors') + pass def create_activity_id(): """Generate a new, unique ID for this activity"""