Commit ca184158 authored by tandrii@chromium.org's avatar tandrii@chromium.org

apply_issue: actually catch exception during patch download.

R=sergiyb@chromium.org,phajdan.jr@chromium.org
BUG=537417

Review URL: https://codereview.chromium.org/1385653002

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@296986 0039d316-1c4b-4281-b951-d872f2087c98
parent c2af0226
......@@ -203,7 +203,9 @@ def main():
print('Downloading patch from %s' % issue_url)
try:
patchset = obj.get_patch(issue_to_apply, patchset_to_apply)
except urllib2.HTTPError as e:
except urllib2.URLError:
logging.exception('failed to fetch the patch for issue %d, patchset %d.',
issue_to_apply, patchset_to_apply)
print(
'Failed to fetch the patch for issue %d, patchset %d.\n'
'Try visiting %s/%d') % (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment