Skip to content
Snippets Groups Projects
Verified Commit 17cb19ec authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Fixed get-releases script

parent c4f675ef
No related branches found
No related tags found
No related merge requests found
......@@ -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():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment