Skip to content

8.6.10: Save of opened file without changing name raise exception (MDF4) #1241

@xstkbm

Description

@xstkbm

If one:

  1. Open a file
  2. Modify something (might not be necessary)
  3. Save without changing the name

An AttributeError is raised in the if block just before the return statement.

As far as I can tell this happens because the first statement in the if block calls self.close(). In that method
self.header and self.identification are deleted. Later in the if block (in the save method) self.header and self.identification
are deleted again causing the AttributeError to be raised.

If my analysis is correct it should enough to delete the statements where self.header and self.identification are deleted in the save methods if block.

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