Skip to content

Did this module ever close a file? #155

Open
@filwaline

Description

@filwaline

DownloadMixin need a File object to serve, and open file in get_file method, but I never found a close call(by global text search).
Did you close file somewhere? Or Using context manager with?

https://docs.djangoproject.com/en/2.2/topics/files/#the-file-object

If open too many file and never close them, IOError will raise.

IOError: [Errno 24] Too many open files

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions