Skip to content

Improve error message when metadata cannot be encoded #1505

@benjeffery

Description

@benjeffery

See tskit-dev/tsinfer#546 We currently report TypeError: Object of type TYPE is not JSON serializable when encoding things that are not supported. It would be better to catch and re-raise with an error message that mentions metadata.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions