def _maybe_close_fd(fh):
    try:
        os.close(fh.fileno())
    except (AttributeError, __HOLE__, TypeError):
        # TypeError added for celery#962
        pass
dataset/ETHPy150Open celery/django-celery/djcelery/loaders.py/_maybe_close_fd