mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-13 00:03:09 -04:00
Fix plugin installer crash with invalid versions
This commit is contained in:
parent
0ba232d1e8
commit
81470513ef
@ -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"]
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user