filelink.get_metadata returns response object when error
khankuan opened this issue · 3 comments
khankuan commented
The following returns invalid metadata.
filelink = client.upload(url)
metadata = filelink.get_metadata()
print(metadata)
TypeError: 'Response' object does not support item assignment
<Response [400]>
- The metadata url returned 400 bad request.
- The
utils.make_callshould throw an exception instead of returning the failed response without errors.
Cheers
staturecrane commented
@khankuan Yes, this can be added. Thanks for the catch.
staturecrane commented
@khankuan This functionality was added as part of newest release. Closing this for now. Thanks!
khankuan commented
Works well thanks!