Skip to content

Commit 9ed5db8

Browse files
authored
fix raise_for_status docstring (#5293)
the exception isn't stored it's created new each call
1 parent 427e8eb commit 9ed5db8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

requests/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ def links(self):
916916
return l
917917

918918
def raise_for_status(self):
919-
"""Raises stored :class:`HTTPError`, if one occurred."""
919+
"""Raises :class:`HTTPError`, if one occurred."""
920920

921921
http_error_msg = ''
922922
if isinstance(self.reason, bytes):

0 commit comments

Comments
 (0)