We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6da6265 commit dfd89d0Copy full SHA for dfd89d0
get-platformio.py
pioinstaller/python.py
@@ -212,13 +212,13 @@ def find_compatible_pythons(
212
except UnicodeDecodeError:
213
pass
214
except subprocess.CalledProcessError as e: # pylint:disable=bare-except
215
+ error = None
216
try:
217
error = e.output.decode()
218
log.debug(error)
219
220
- error = error or ""
221
- if "Could not find distutils module" in error:
+ if error and "Could not find distutils module" in error:
222
# pylint:disable=line-too-long
223
raise click.ClickException(
224
"""Can not install PlatformIO Core due to a missed `distutils` package in your Python installation.
0 commit comments