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

Could we get Error Code in Shotgun's Exception #247

Open
francoisgfx opened this issue Aug 11, 2021 · 0 comments
Open

Could we get Error Code in Shotgun's Exception #247

francoisgfx opened this issue Aug 11, 2021 · 0 comments

Comments

@francoisgfx
Copy link

francoisgfx commented Aug 11, 2021

Could you add the http return/error code in the Shotgun's Exception ?
I would like to manage some exception based on 4xx and 5xx exceptions.

for instance, here I'll loose all error code :
https://github.com/shotgunsoftware/python-api/blob/master/shotgun_api3/shotgun.py#L2689

same issue here https://github.com/shotgunsoftware/python-api/blob/master/shotgun_api3/shotgun.py#L4121

but it seems _call_rpc is fine since you only do a raise at the end

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

No branches or pull requests

1 participant