Skip to content

Commit

Permalink
Call parent class (requests.Session) method in a more obvious way.
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Jul 20, 2020
1 parent e775899 commit b18cf1e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit b18cf1e

Please sign in to comment.