summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsamuong@chromium.org <samuong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-17 21:25:43 +0000
committersamuong@chromium.org <samuong@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-07-17 21:25:43 +0000
commitd355780d6cd5bea76c3cd797c79c2b312a4baa86 (patch)
treea2fc1b7be6e0bf37e568c9b2137dfffc6084283a
parente56365403d8e93e6bd1fc5d8e2b5fda0990ce17d (diff)
downloadchromium_src-d355780d6cd5bea76c3cd797c79c2b312a4baa86.zip
chromium_src-d355780d6cd5bea76c3cd797c79c2b312a4baa86.tar.gz
chromium_src-d355780d6cd5bea76c3cd797c79c2b312a4baa86.tar.bz2
[chromedriver] Catch URLError during buildbot wait_for_snapshot step.
BUG= NOTRY=true Review URL: https://codereview.chromium.org/399133006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@283884 0039d316-1c4b-4281-b951-d872f2087c98
-rwxr-xr-xchrome/test/chromedriver/run_buildbot_steps.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/test/chromedriver/run_buildbot_steps.py b/chrome/test/chromedriver/run_buildbot_steps.py
index 276b0c3..dd1a371 100755
--- a/chrome/test/chromedriver/run_buildbot_steps.py
+++ b/chrome/test/chromedriver/run_buildbot_steps.py
@@ -390,6 +390,8 @@ def _GetSVNRevisionFromGitHash(snapshot_hashcode):
response = urllib2.urlopen(json_url)
except urllib2.HTTPError as error:
util.PrintAndFlush('HTTP Error %d' % error.getcode())
+ except urllib2.URLError as error:
+ util.PrintAndFlush('URL Error %s' % error.message)
return None
data = json.loads(response.read()[4:])
if 'message' in data: