Skip to content

Commit

Permalink
fix raise_for_status docstring (#5293)
Browse files Browse the repository at this point in the history
the exception isn't stored it's created new each call
  • Loading branch information
graingert committed May 9, 2020
1 parent 427e8eb commit 9ed5db8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion requests/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ def links(self):
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):
Expand Down

0 comments on commit 9ed5db8

Please sign in to comment.