From d093b5f6be3a78d04026e98c7e36380b7c765b29 Mon Sep 17 00:00:00 2001 From: Anton Danchenko Date: Wed, 30 Jan 2019 14:02:24 +0200 Subject: [PATCH] fix for 502 response from sauce Signed-off-by: Anton Danchenko --- test/appium/tests/conftest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/appium/tests/conftest.py b/test/appium/tests/conftest.py index 25035849c2..7e219175c1 100644 --- a/test/appium/tests/conftest.py +++ b/test/appium/tests/conftest.py @@ -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