download_sdk_extras: Catch the correct error.
commit63ab4fead51b043cb1f21ae2b31f9e593cbdc3ca
authordnj <dnj@chromium.org>
Mon, 23 Feb 2015 18:21:56 +0000 (23 10:21 -0800)
committerCommit bot <commit-bot@chromium.org>
Mon, 23 Feb 2015 18:22:40 +0000 (23 18:22 +0000)
treeb0d027ff43e0768dc1d0c4b1c5a40b8967e0db40
parentc51d0ec56e1ea3b848ecb760c0c6118d723b13ef
download_sdk_extras: Catch the correct error.

Catch the error raised by 'check_call' rather than the error emitted by
the called process.

BUG=chromium:460693,chromium:459681
TEST=local
  - Ran without fix, setting CHROME_HEADLESS=1. Script failed with the exception
    in the bug.
  - Ran with fix, 'gsutil' failed with AccessDeniedException output
    and the calling script successfully emitted a warning message.

R=hinoka@chromium.org, navabi@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#317608}
build/download_sdk_extras.py