Skip to content

Commit 8147051

Browse files
committed
Fix plugin installer crash with invalid versions
1 parent 0ba232d commit 8147051

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

python/pyplugin_installer/version_compare.py

+3
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,9 @@ def isCompatible(curVer, minVer, maxVer):
179179
maxVer = splitVersion( re.sub(r'[^0-9.]+', '', maxVer) )
180180
curVer = splitVersion( re.sub(r'[^0-9.]+', '', curVer) )
181181

182+
if not minVer or not curVer or not maxVer:
183+
return False
184+
182185
if len(minVer)<3:
183186
minVer += ["0"]
184187

0 commit comments

Comments
 (0)