[#4535] - Unwrap max retries exceeded errors

This commit is contained in:
Bob Strecansky 2017-08-05 10:39:04 -04:00
parent 3cc94798b6
commit 880c35f3e3

View file

@ -643,7 +643,6 @@ class ClientNetwork(object): # pylint: disable=too-many-instance-attributes
object at 0x108356c50>: Failed to establish a new connection:
[Errno 65] No route to host',))"""
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))