[release-tools] Return no hash if version is not available.

BUG=

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

Cr-Commit-Position: refs/heads/master@{#28070}
This commit is contained in:
hablich 2015-04-27 04:32:29 -07:00 committed by Commit bot
parent da1f8d6399
commit 8d8b742b9d

View File

@ -461,6 +461,8 @@ class RetrieveInformationOnChromeReleases(Step):
self["chrome_releases"] = chrome_releases
def _GetGitHashForV8Version(self, v8_version):
if v8_version == "N/A":
return ""
if v8_version.split(".")[3]== "0":
return self.GitGetHashOfTag(v8_version[:-2])