Skip to content

Crash on posting metadata with empty value #246

@sclu1034

Description

@sclu1034

Beancount allows metadata with an empty value.
beancount-import does not.

This leads to a confusing runtime error in compute_metadata_changes, where beancount-import will claim that expected metadata keys couldn't be found, even though both old_meta and new_meta in that function contain those keys.
But since the line with an empty value doesn't match the regex, the loop doesn't get to parse all lines and old_meta_not_seen does not get cleared.

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