From 105c85dbcaca082ca7704fe4dea704f46717ed04 Mon Sep 17 00:00:00 2001 From: "brucedawson@chromium.org" Date: Thu, 7 Jan 2016 21:37:47 +0000 Subject: [PATCH] Fix raise to use Exception instead of raw strings I coded these incorrectly in a previous change and hit them when building a VS package. Review URL: https://codereview.chromium.org/1567863004 git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@298156 0039d316-1c4b-4281-b951-d872f2087c98 --- win_toolchain/package_from_installed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win_toolchain/package_from_installed.py b/win_toolchain/package_from_installed.py index 19d3e706c..bda571a86 100644 --- a/win_toolchain/package_from_installed.py +++ b/win_toolchain/package_from_installed.py @@ -317,9 +317,9 @@ def main(): (total_size / 1e9, count, version_match_count, WIN_VERSION, ' '*50)) return 0 if missing_files: - raise 'One or more files were missing - aborting' + raise Exception('One or more files were missing - aborting') if version_match_count == 0: - raise 'No files found that match the specified winversion' + raise Exception('No files found that match the specified winversion') sys.stdout.write('\rWrote to %s.%s\n' % (output, ' '*50)) sys.stdout.flush()