From fef399d0a4b0aa31df57da704155af8777a19f31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Louis=20V=C3=A9zina?= <5130500+morpheus65535@users.noreply.github.com> Date: Sun, 8 Sep 2019 07:59:08 -0400 Subject: [PATCH] Fix for Python version check when there's a "+" sign in revision number. --- bazarr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bazarr.py b/bazarr.py index 17fc44cdf..4448dc16c 100644 --- a/bazarr.py +++ b/bazarr.py @@ -18,7 +18,7 @@ def check_python_version(): print "Python 3 isn't supported. Please use Python " + minimum_python_version + " or greater." os._exit(0) - elif int(python_version[1]) < minimum_python_version_tuple[1] or int(python_version[2]) < minimum_python_version_tuple[2]: + elif int(python_version[1]) < minimum_python_version_tuple[1] or int(python_version[2].rstrip('+')) < minimum_python_version_tuple[2]: print "Python " + minimum_python_version + " or greater required. Current version is " + platform.python_version() + ". Please upgrade Python." os._exit(0)