Skip to content

KeyError in _classify_pandoc_logging when the message format does not fit the assumptions #269

Closed
@massoncl

Description

@massoncl

Since #250, I have an issue with the _classify_pandoc_logging function : when the parsed message does not fit the expected format, the parsing can end in a KeyError. For example, pandoc-include has a warning formatted like this:

[Warn] included file not found: path_of_the_file

Warn isn't in the dictionnary of expected log levels, which raises a KeyError on line 422:

yield level_map[level], "\n".join(log_msgs)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions