From 9ed5db8ed28e816b597dafd328b342ec95466afa Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Sat, 9 May 2020 06:08:51 +0100 Subject: [PATCH] fix raise_for_status docstring (#5293) the exception isn't stored it's created new each call --- requests/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requests/models.py b/requests/models.py index 35798832..6e20ac4d 100644 --- a/requests/models.py +++ b/requests/models.py @@ -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):