diff options
author | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-18 18:55:03 +0000 |
---|---|---|
committer | maruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-18 18:55:03 +0000 |
commit | 71cdeb48fd0924680a74261fc59950f3b9878426 (patch) | |
tree | 764df85915c849a84695df7e0a1ac1184b91b921 /PRESUBMIT.py | |
parent | 130efb094a3c96bda00da28615b5c1e0481b7218 (diff) | |
download | chromium_src-71cdeb48fd0924680a74261fc59950f3b9878426.zip chromium_src-71cdeb48fd0924680a74261fc59950f3b9878426.tar.gz chromium_src-71cdeb48fd0924680a74261fc59950f3b9878426.tar.bz2 |
Fix try job status PRESUBMIT check when an issue is private.
TEST=presubmit doesn't throw an exception on private issues
BUG=none
Review URL: http://codereview.chromium.org/207030
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@26598 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'PRESUBMIT.py')
-rwxr-xr-x | PRESUBMIT.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/PRESUBMIT.py b/PRESUBMIT.py index b1db3c7..1b7dea1 100755 --- a/PRESUBMIT.py +++ b/PRESUBMIT.py @@ -86,6 +86,9 @@ def CheckTryJobExecution(input_api, output_api): # platform|status|url values = [item.split('|', 2) for item in connection.read().splitlines()] connection.close() + if not values: + # It returned an empty list. Probably a private review. + return outputs # Reformat as an dict of platform: [status, url] values = dict([[v[0], [v[1], v[2]]] for v in values]) for platform in PLATFORMS: |