vc: don't return empty tuple

This commit is contained in:
icxes 2026-02-26 01:35:43 +02:00
parent 0fd6fe02f3
commit faa6ff1861
No known key found for this signature in database

View file

@ -1790,7 +1790,7 @@ class SvcHub(object):
def parse_version(self, ver: str) -> tuple:
match = re.search(r'[\d.]+', ver)
if not match:
return ()
return (0, 0, 0)
clean = match.group(0).strip('.')
return tuple(int(x) for x in clean.split("."))