mirror of
https://github.com/9001/copyparty.git
synced 2026-02-26 13:33:09 -07:00
vc: don't return empty tuple
This commit is contained in:
parent
0fd6fe02f3
commit
faa6ff1861
|
|
@ -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("."))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue