Failure to close descriptor is actually expected. Don't bloat the logs.

This commit is contained in:
Marco Pesenti Gritti 2008-09-19 11:38:23 +02:00
parent 6a5d0c837b
commit 7eafbe9ce9

View File

@ -62,8 +62,9 @@ def _close_fds():
for i in xrange(3, MAXFD): for i in xrange(3, MAXFD):
try: try:
os.close(i) os.close(i)
# pylint: disable-msg=W0704
except Exception: except Exception:
logging.error('Cannot close file file descriptors') pass
def create_activity_id(): def create_activity_id():
"""Generate a new, unique ID for this activity""" """Generate a new, unique ID for this activity"""