I am writing a url fetcher. When I send a request like:
import requests
response = requests.get("http://example.com")
Sometimes an error like this occurs:
ConnectionError: ('Connection aborted.', BadStatusLine(""''''"))
But when I try one more time, it fixes. So I would like to send one more time when such an error occurs again. How can I do that? Thank you in advance!