Fix plugin installer crash with invalid versions

This commit is contained in:
Nathan Woodrow 2015-01-15 10:56:26 +10:00
parent 0ba232d1e8
commit 81470513ef

View File

@ -179,6 +179,9 @@ def isCompatible(curVer, minVer, maxVer):
maxVer = splitVersion( re.sub(r'[^0-9.]+', '', maxVer) )
curVer = splitVersion( re.sub(r'[^0-9.]+', '', curVer) )
if not minVer or not curVer or not maxVer:
return False
if len(minVer)<3:
minVer += ["0"]