Skip to content

ResourceWarning — file objects are not closed properly #77

@merwok

Description

@merwok

Steps:

  • run app with python warnings enabled (python3 -Wmodule for example)
  • open filebrowser in admin, look at files
  • see many ResourceWarning

Fix: close file objects after reading or streaming their content (with statement may help, depending on the code structure)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions