Commit a3a8639a authored by stgao's avatar stgao Committed by Commit bot

[Findit] [Findit] Remove usage of sys.exit(0) because it still causes...

[Findit] [Findit] Remove usage of sys.exit(0) because it still causes exception stack in clusterfuzz.

NOTRY=true

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

Cr-Commit-Position: refs/heads/master@{#294508}
parent 1170df75
......@@ -2,8 +2,6 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
import sys
import chromium_deps
from common import utils
import crash_utils
......@@ -111,19 +109,17 @@ def FindCulpritCLs(stacktrace_string,
component_to_regression_dict = chromium_deps.GetChromiumComponentRange(
chrome_regression_start, chrome_regression_end)
if not component_to_regression_dict:
print ('Failed to get component regression ranges for chromium '
return (('Failed to get component regression ranges for chromium '
'regression range %s:%s'
% (chrome_regression_start, chrome_regression_end))
sys.exit(0)
% (chrome_regression_start, chrome_regression_end)), [])
# Parse crash revision.
if chrome_crash_revision:
component_to_crash_revision_dict = chromium_deps.GetChromiumComponents(
chrome_crash_revision)
if not component_to_crash_revision_dict:
print ('Failed to get component dependencies for chromium revision "%s".'
% chrome_crash_revision)
sys.exit(0)
return (('Failed to get component dependencies for chromium revision "%s"'
% chrome_crash_revision), [])
# Check if component regression information is available.
component_regression = crash_utils.SplitRange(component_regression)
......
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