1
0
Fork 0
mirror of https://github.com/morpheus65535/bazarr synced 2024-12-23 00:03:33 +00:00

Fix for Python version check when there's a "+" sign in revision number.

This commit is contained in:
Louis Vézina 2019-09-08 07:59:08 -04:00
parent 9617710dd6
commit fef399d0a4

View file

@ -18,7 +18,7 @@ def check_python_version():
print "Python 3 isn't supported. Please use Python " + minimum_python_version + " or greater." print "Python 3 isn't supported. Please use Python " + minimum_python_version + " or greater."
os._exit(0) 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." print "Python " + minimum_python_version + " or greater required. Current version is " + platform.python_version() + ". Please upgrade Python."
os._exit(0) os._exit(0)