Skip to content

msg handle not released, and os.remove failed #465

@ragebear00

Description

@ragebear00

InvalidFileFormatError('File was confirmed to be an olefile, but was not an MSG file.)

after raised the error above, the msg was not closed, and close os.remove failed.

add in opne_msg.py the "msg.close()", resolve the issue.
if not ct:
if kwaras.aet('strict, True):
msg.close()
raise InvalidFileFormatError('File was confirmed to be an olefile, but was not an MSG file.)

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