fix raise_for_status docstring (#5293)

the exception isn't stored it's created new each call
This commit is contained in:
Thomas Grainger
2020-05-09 06:08:51 +01:00
committed by GitHub
parent 427e8eb1e7
commit 9ed5db8ed2
+1 -1
View File
@@ -916,7 +916,7 @@ class Response(object):
return l
def raise_for_status(self):
"""Raises stored :class:`HTTPError`, if one occurred."""
"""Raises :class:`HTTPError`, if one occurred."""
http_error_msg = ''
if isinstance(self.reason, bytes):