Verified Commit 17cb19ec authored by Eliot Berriot's avatar Eliot Berriot 💬

Fixed get-releases script

parent c4f675ef
Pipeline #4155 passed with stages
in 6 minutes and 32 seconds
......@@ -21,7 +21,15 @@ def get_versions():
continue
tags.append({"id": tag, "date": date})
return sorted(tags, key=lambda tag: StrictVersion(tag["id"]), reverse=True)
valid = []
for tag in tags:
try:
StrictVersion(tag["id"])
valid.append(tag)
except ValueError:
continue
return sorted(valid, key=lambda tag: StrictVersion(tag["id"]), reverse=True)
def main():
......
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