mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-03-24 16:19:28 +07:00
Python: report wrong version string
GitOrigin-RevId: ebdcf4f5be07bd1a7ff4bffd2b81a7114c2f283e
This commit is contained in:
committed by
intellij-monorepo-bot
parent
22f79b04fa
commit
0fecbf2ca1
@@ -38,7 +38,7 @@ internal suspend fun ExecService.validatePythonAndGetVersionImpl(python: Executa
|
||||
val versionString = versionOutput.stdoutString.let { it.ifBlank { versionOutput.stderrString } }
|
||||
val languageLevel = getLanguageLevelFromVersionStringStaticSafe(versionString.trim())
|
||||
if (languageLevel == null) {
|
||||
return@withContext PyResult.localizedError(message("python.get.version.wrong.version", python.userReadableName, versionOutput))
|
||||
return@withContext PyResult.localizedError(message("python.get.version.wrong.version", python.userReadableName, versionString))
|
||||
}
|
||||
return@withContext Result.success(languageLevel)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user