-
-
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
Implement history for ClientResponseError. #1742
Conversation
ClientResponseError will contain history from ClientResponse. Implememnts: #1741
History type is tuple
aiohttp/client_exceptions.py
Outdated
@@ -25,11 +25,13 @@ class ClientResponseError(ClientError): | |||
:param request_info: instance of RequestInfo | |||
""" | |||
|
|||
def __init__(self, request_info, *, code=0, message='', headers=None): | |||
def __init__(self, request_info, *, code=0, message='', headers=None, | |||
history=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's make it required. we always pass history.
great! thanks. |
I have code-style question: no type-hints - it's project code-style, or it's allowed hinting with py3.3 backward compatibility? |
we started before type-hinting, we need to support py3.4 if you want to use type-hinting, make another PR |
Do you want me to wait with merge of this pr? |
No, it will be sepsrate issueId.
ср, 22 мар. 2017 г., 21:35 Nikolay Kim <[email protected]>:
Do you want me to wait with merge of this pr?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1742 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/APSmM0tDArrH52Qw1qykW5YnV553j5MLks5roWnagaJpZM4Mlgfh>
.
--
Best regards, Alexey Stepanov.
|
Ok, good |
What do these changes do?
ClientResponseError will contain history from ClientResponse.
Are there changes in behavior for the user?
User can extract redirect history from exception and use it for error investigation purposes.
Related issue number
#1741