aboutsummaryrefslogtreecommitdiff
path: root/remote_gcc_build.py
diff options
context:
space:
mode:
authorCaroline Tice <cmtice@google.com>2016-07-22 16:28:12 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-07-27 07:23:18 -0700
commit9099a788cd7124024559c064e425ed9caef6e0ac (patch)
tree87df663ff83ab398121cd66e9528422979a63cf6 /remote_gcc_build.py
parent19e119b46c14f57988ba3504369e815d3aab0122 (diff)
downloadtoolchain-utils-9099a788cd7124024559c064e425ed9caef6e0ac.tar.gz
[crosperf] Clean up exceptions.
Found all instances of 'raise Exception' and changed them to raise something slightly more specific. Changed a few 'except Exception' statements appropriately as well. BUG=chromium:566255 TEST=None Change-Id: If2666bd55838342bc71431e5e6ab2157c2c9e125 Reviewed-on: https://chrome-internal-review.googlesource.com/270731 Commit-Ready: Caroline Tice <cmtice@google.com> Tested-by: Caroline Tice <cmtice@google.com> Reviewed-by: Yunlian Jiang <yunlian@google.com>
Diffstat (limited to 'remote_gcc_build.py')
-rwxr-xr-xremote_gcc_build.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/remote_gcc_build.py b/remote_gcc_build.py
index 37285645..52cedfbc 100755
--- a/remote_gcc_build.py
+++ b/remote_gcc_build.py
@@ -197,7 +197,7 @@ def UploadManifest(manifest, chromeos_root, branch='master'):
command = 'git checkout -b {0} -t cros-internal/{1}'.format(BRANCH, branch)
ret = ce.RunCommand(command)
if ret:
- raise Exception('Command {0} failed'.format(command))
+ raise RuntimeError('Command {0} failed'.format(command))
# We remove the default.xml, which is the symbolic link of full.xml.
# After that, we copy our xml file to default.xml.
@@ -399,8 +399,8 @@ def Main(argv):
patch = []
chromeos_root = misc.CanonicalizePath(args.chromeos_root)
if args.chromeos_version and args.branch:
- raise Exception('You can not set chromeos_version and branch at the '
- 'same time.')
+ raise RuntimeError('You can not set chromeos_version and branch at the '
+ 'same time.')
manifests = None
if args.branch: