Improve error handling for cs tests.

pull/26512/head
Matt Clay 7 years ago
parent 9fc6f85473
commit a94156227d

@ -21,6 +21,7 @@ from lib.util import (
from lib.http import ( from lib.http import (
HttpClient, HttpClient,
HttpError,
urlparse, urlparse,
) )
@ -242,7 +243,10 @@ class CsCloudProvider(CloudProvider):
response = client.get(endpoint) response = client.get(endpoint)
if response.status_code == 200: if response.status_code == 200:
return response.json() try:
return response.json()
except HttpError as ex:
display.error(ex)
time.sleep(30) time.sleep(30)

Loading…
Cancel
Save