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 ee7a305 commit b2e65bcCopy full SHA for b2e65bc
src/ansys/tools/installer/find_python.py
@@ -114,13 +114,14 @@ def _find_installed_ansys_python_win():
114
f"commonfiles\\CPython\\{ansys_py_ver}\\winx64\\Release\\python",
115
)
116
if os.path.exists(path):
117
- version_output = subprocess.check_output(
118
- [f"{path}\\python.exe", "--version"], text=True
119
- ).strip()
120
try:
+ version_output = subprocess.check_output(
+ [f"{path}\\python.exe", "--version"], text=True
+ ).strip()
121
version = version_output.split()[1]
122
paths[path] = (version, False)
123
- except Exception:
+ except Exception as err:
124
+ LOG.error(f"Failed to retrieve Python version: {str(err)}")
125
pass
126
127
return paths
0 commit comments