Closed rhigman closed 5 months ago
The first case can be caught with static type checking - it's written in the documentation that data should not be none. Paths being empty is also something that you should take care of yourself - as of #28 it's also possible to add an empty set of paths in case you aren't planning on uploading any files and just creating some metadata.
If
data
argument is present but not valid (e.g. wrong type),create()
proceeds with the deposit attempt anyway, triggering an error response from Zenodo. This error response is printed to the command line, and includes the submitted access token.If
paths
argument is present but not valid (e.g. empty), a similar result occurs.I'm on tag
0.3.2
, but I think the issue is still present in main.