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

Add a special exception for responses with 4xx status #186

Open
aerubanov opened this issue Dec 6, 2020 · 0 comments · May be fixed by #193
Open

Add a special exception for responses with 4xx status #186

aerubanov opened this issue Dec 6, 2020 · 0 comments · May be fixed by #193

Comments

@aerubanov
Copy link
Contributor

I use osfclient programmaticly for integration OSF with DVC. Now, if osfclient get responce with error code (429 for example) it raise RuntimeError. But it is not very usefull, because it is quite difficult to distinguish response with error code from other problems that may raise thise exception in Python.

For this reason, I propose to add a separate exception class(s) for API responses with error codes, as is currently done with an authentication error.

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

Successfully merging a pull request may close this issue.

1 participant