-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
RuntimeError raised when a Redirect doesn't have a Location or URI HTTP header #2009
Comments
Well, a new class in Would you make a PR? |
Sure! |
Please note: procedure for adding changes to |
PCManticore
added a commit
to PCManticore/aiohttp
that referenced
this issue
Jun 25, 2017
Raise `RedirectWithoutLocationError` if a redirect response has no Location or URI HTTP header. Close aio-libs#2009
PCManticore
added a commit
to PCManticore/aiohttp
that referenced
this issue
Jun 25, 2017
Raise `RedirectWithoutLocationError` if a redirect response has no Location or URI HTTP header. Close aio-libs#2009
5 tasks
PCManticore
added a commit
to PCManticore/aiohttp
that referenced
this issue
Jun 25, 2017
Raise `RedirectWithoutLocationError` if a redirect response has no Location or URI HTTP header. Close aio-libs#2009
PCManticore
added a commit
to PCManticore/aiohttp
that referenced
this issue
Jun 25, 2017
Raise `RedirectURLError` if a redirect response has no Location or URI HTTP header. Close aio-libs#2009
Sorry, I misleaded you. Proper exception class should derive from |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Long story short
As per title, whenever a redirect response doesn't have a Location or a URI HTTP header, a RuntimeError will be raised by aiohttp. While this is indeed a problem, I think that raising RuntimeError seems a bit too much, since now I have to handle it explicitly in my code, rather than catching an aiohttp exception
Expected behaviour
For another exception, particular to aiohttp, to be raised, so that we can handle this case from our code, without hiding other bugs.
Actual behaviour
RuntimeError gets raised
Steps to reproduce
Your environment
aiohttp==2.0.7
Python 3.6
The text was updated successfully, but these errors were encountered: