mirror of
https://github.com/kennethreitz/requests.git
synced 2026-06-05 22:50:18 +00:00
Merge pull request #3876 from mislavcimpersak/hotfix/response_ok_docstring
added docstring for response.ok property
This commit is contained in:
@@ -672,6 +672,7 @@ class Response(object):
|
||||
|
||||
@property
|
||||
def ok(self):
|
||||
"""Returns true if :attr:`status_code` is 'OK'."""
|
||||
try:
|
||||
self.raise_for_status()
|
||||
except HTTPError:
|
||||
|
||||
Reference in New Issue
Block a user