Commit 478d3d6a authored by hablich's avatar hablich Committed by Commit bot

[Release] releases.py should not crash on non-release versions

NOTRY=true
R=machenbach@chromium.org

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

Cr-Commit-Position: refs/heads/master@{#32545}
parent 224c7fa7
......@@ -463,10 +463,15 @@ class RetrieveInformationOnChromeReleases(Step):
def _GetGitHashForV8Version(self, v8_version):
if v8_version == "N/A":
return ""
real_v8_version = v8_version
if v8_version.split(".")[3]== "0":
return self.GitGetHashOfTag(v8_version[:-2])
real_v8_version = v8_version[:-2]
return self.GitGetHashOfTag(v8_version)
try:
return self.GitGetHashOfTag(real_v8_version)
except GitFailedException:
return ""
def _CreateCandidate(self, current_version):
params = None
......
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