diff --git a/locust/clients.py b/locust/clients.py index 84f23622a3..f9390e73fd 100644 --- a/locust/clients.py +++ b/locust/clients.py @@ -164,7 +164,7 @@ def _send_request_safe_mode(self, method, url, **kwargs): Safe mode has been removed from requests 1.x. """ try: - return requests.Session.request(self, method, url, **kwargs) + return super().request(method, url, **kwargs) except (MissingSchema, InvalidSchema, InvalidURL): raise except RequestException as e: