mirror of
https://github.com/certbot/certbot.git
synced 2026-06-03 13:59:02 -04:00
[#4535] - Unwrap max retries exceeded errors
This commit is contained in:
parent
18d3df78e8
commit
1e71ff5377
1 changed files with 3 additions and 1 deletions
|
|
@ -643,7 +643,9 @@ class ClientNetwork(object): # pylint: disable=too-many-instance-attributes
|
|||
object at 0x108356c50>: Failed to establish a new connection:
|
||||
[Errno 65] No route to host',))"""
|
||||
|
||||
err_regex = r".*host='(\S*)'.*url\: (\/\w*).*(\[Errno \d+\])([A-Za-z ]*)"
|
||||
print e.message
|
||||
# pylint: disable=line-too-long
|
||||
err_regex = r".*host='(\S*)'.*Max retries exceeded with url\: (\/\w*).*(\[Errno \d+\])([A-Za-z ]*)"
|
||||
m = re.match(err_regex, str(e))
|
||||
if m is None:
|
||||
raise # pragma: no cover
|
||||
|
|
|
|||
Loading…
Reference in a new issue