Skip to content

Commit

Permalink
fix ClientResponseError docstring (#6700)
Browse files Browse the repository at this point in the history
* fix ClientResponseError docs

* add news fragment for ClientResponseError docs fix

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
(cherry picked from commit 65bf205)
  • Loading branch information
ntextreme3 authored and patchback[bot] committed Apr 14, 2022
1 parent 8d78327 commit 6132e02
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES/6700.doc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
fix `ClientResponseError` docs
8 changes: 6 additions & 2 deletions aiohttp/client_exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,13 @@ class ClientError(Exception):


class ClientResponseError(ClientError):
"""Connection error during reading response.
"""Base class for exceptions that occur after getting a response.
request_info: instance of RequestInfo
request_info: An instance of RequestInfo.
history: A sequence of responses, if redirects occurred.
status: HTTP status code.
message: Error message.
headers: Response headers.
"""

def __init__(
Expand Down

0 comments on commit 6132e02

Please sign in to comment.