List of steps to reproduce (step by step, including full links if applicable):
Try accessing a site with pywikibot that is misconfigured
What happens?:
requests.exceptions.ConnectionError: HTTPConnectionPool(host='api.php', port=80): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f8b675f1610>: Failed to establish a new connection: [Errno -2] Name or service not known'))
What should have happened instead?:
no retries should be attempted if the Error is "Name or service not known" since that is probably not going away and the wait will take unnecessary long.
Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc:
pywikibot 6.6.3