fix for 502 response from sauce

Signed-off-by: Anton Danchenko <ant.danchenko@gmail.com>
This commit is contained in:
Anton Danchenko 2019-01-30 14:02:24 +02:00
parent 7f12d181d7
commit d093b5f6be
No known key found for this signature in database
GPG Key ID: C2D4819B698627E4
1 changed files with 2 additions and 2 deletions

View File

@ -9,7 +9,7 @@ from tests import test_suite_data, appium_container
from datetime import datetime
from os import environ
from io import BytesIO
from sauceclient import SauceClient
from sauceclient import SauceClient, SauceException
from support.api.jenkins_api import get_jenkins_build_url
from support.api.network_api import NetworkApi
from support.github_report import GithubHtmlReport
@ -242,7 +242,7 @@ def update_sauce_jobs(test_name, job_ids, passed):
for job_id in job_ids.keys():
try:
sauce.jobs.update_job(job_id, name=test_name, passed=passed)
except RemoteDisconnected:
except (RemoteDisconnected, SauceException):
pass