Closed lilyminium closed 12 months ago
v0.50 should be a bit more explicit with errors like this (although still not perfect). At least it will be a pydantic error and not just a generic error. If it's still not enough it might be possible to use typecheck
with the client functions.
Is your feature request related to a problem? Please describe.
I spent some time debugging a silly error where I passed in a list of keyword ObjectIds instead of a single ObjectId. The error I got was:
Describe the solution you'd like
A more relevant error message would have been helpful, probably generated via type-checking before sending it off to the server. Alternatively the input could be cleaned as is done for
molecule
.Describe alternatives you've considered
Additional context
MWE:
Environment