Hi team! Small feature request that may help some ...
# help
b
Hi team! Small feature request that may help some other users - in the high level python api, when an upload fails, it currently raises an exception with the status code only (I believe).
Copy code
/lakefs/object.py", line 545, in _upload_raw
    handle_http_error(resp)
/lakefs/exceptions.py", line 159, in handle_http_error
    raise lakefs_ex
lakefs.exceptions.ForbiddenException: code: 403, reason: Forbidden, body: {}
In this particular case, I was trying to write to the main (protected branch)
the information is in the
response.content
but it seems like were not passing that through to the body / exception here
(only the reason which is simply
forbidden
)
e
Hi @Brad, Thank you for letting us know I'd consider this more of a bug than a feature request The intention of the HL SDK is to improve usability and accessibility for Python users
🙌 1
I've created an issue here If you'd like to add additional information, you're welcome to comment on the issue
Thanks again ✌🏻
b
Thank you @Elad Lachmi!
lakefs 1
e
Sure, np