Browse code

fix detection with no safe version

Hanno Böck authored on10/12/2019 14:24:57
Showing1 changed files
... ...
@@ -34,6 +34,8 @@ from xml.sax.saxutils import escape
34 34
 
35 35
 
36 36
 def versioncompare(safe_version, find_version):
37
+    if safe_version == "":
38
+        return True
37 39
     safe_version_tup = [int(x) for x in safe_version.split(".")]
38 40
     find_version_tup = [int(x) for x in find_version.split(".")]
39 41
     return find_version_tup < safe_version_tup