Failure to close descriptor is actually expected. Don't bloat the logs.
This commit is contained in:
parent
6a5d0c837b
commit
7eafbe9ce9
@ -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"""
|
||||||
|
Loading…
Reference in New Issue
Block a user