Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message when metadata cannot be encoded #1505

Closed
benjeffery opened this issue Jun 21, 2021 · 0 comments · Fixed by #1827
Closed

Improve error message when metadata cannot be encoded #1505

benjeffery opened this issue Jun 21, 2021 · 0 comments · Fixed by #1827
Labels
enhancement New feature or request
Milestone

Comments

@benjeffery
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant