aboutsummaryrefslogtreecommitdiffhomepage
path: root/bazarr.py
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2021-07-07 13:30:12 -0400
committermorpheus65535 <[email protected]>2021-07-07 13:30:12 -0400
commit3b1b67d70142c6a6f77dac7e84755a1519449447 (patch)
tree28f5d485ebc92119fcf64cca51bec0472fdbceba /bazarr.py
parent8bfcf97ed59efb10850c70e45e2be7660437893a (diff)
downloadbazarr-3b1b67d70142c6a6f77dac7e84755a1519449447.tar.gz
bazarr-3b1b67d70142c6a6f77dac7e84755a1519449447.zip
Added an unsupported warning on startup if using Python 3.9
Diffstat (limited to 'bazarr.py')
-rw-r--r--bazarr.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/bazarr.py b/bazarr.py
index a3e17189a..5b6d077ba 100644
--- a/bazarr.py
+++ b/bazarr.py
@@ -20,6 +20,9 @@ def check_python_version():
print("Python " + minimum_py3_str + " or greater required. "
"Current version is " + platform.python_version() + ". Please upgrade Python.")
sys.exit(1)
+ elif int(python_version[0]) == 3 and int(python_version[1]) == 9:
+ print("Python 3.9.x is unsupported. Current version is " + platform.python_version() +
+ ". Keep in mind that even if it works, you're on your own.")
elif (int(python_version[0]) == minimum_py3_tuple[0] and int(python_version[1]) < minimum_py3_tuple[1]) or \
(int(python_version[0]) != minimum_py3_tuple[0]):
print("Python " + minimum_py3_str + " or greater required. "