Skip to content

Use contextmanagers to ensure files are closed on errors #110

@chatcannon

Description

@chatcannon
          This should really be done with a contextmanager but the `if ...: close()` is better than nothing.

Originally posted by @chatcannon in #102 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions