mirror of
https://github.com/morpheus65535/bazarr
synced 2024-12-23 08:13:14 +00:00
Fix for Python version check when there's a "+" sign in revision number.
This commit is contained in:
parent
9617710dd6
commit
fef399d0a4
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue