Merge pull request #3876 from mislavcimpersak/hotfix/response_ok_docstring

added docstring for response.ok property
This commit is contained in:
Cory Benfield
2017-02-16 09:30:11 +00:00
committed by GitHub
+1
View File
@@ -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: