Skip to content
Myr

fix raise_for_status docstring (#5293)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

the exception isn't stored it's created new each call

authored by Thomas Grainger · committed by GitHub · parent 427e8eb · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/models.py+1 added-1 removed
914 unmodified lines
915916 return l917918 def raise_for_status(self):919 """Raises stored :class:`HTTPError`, if one occurred."""919 """Raises :class:`HTTPError`, if one occurred."""920921 http_error_msg = ''922 if isinstance(self.reason, bytes):923 # We attempt to decode utf-8 first because some servers
31 unmodified lines