Update raspi-blinka.py

fixes a "< operator cannot be used to compare NonType with int" error on a RPI-Zero-W
This commit is contained in:
BasdeWinter 2023-02-07 18:52:45 +01:00 committed by GitHub
parent 0445056459
commit d262dedd1f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -105,7 +105,7 @@ Raspberry Pi and installs Blinka
default_python = 0
if not shell.prompt("Continue?"):
shell.exit()
elif default_python_version() < 3:
elif int(default_python_version()) < 3:
shell.warn("WARNING Default System python version is {}. It will be updated to Version 3.".format(default_python_version(False)))
default_python = 2
if not shell.prompt("Continue?"):