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