mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[Jupyter] Add a check for Throwable rethrow in AsdfSystemProvider.kt
Some exception should always be rethrown GitOrigin-RevId: 337cfc90af2c7f3232ad157d38030d3f0fca121f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
8ab60bc079
commit
e8b4bffc83
+3
-2
@@ -6,9 +6,9 @@ import com.intellij.platform.eel.EelApi
|
||||
import com.intellij.platform.eel.getOrNull
|
||||
import com.intellij.platform.eel.path.EelPath
|
||||
import com.intellij.platform.eel.provider.asNioPath
|
||||
import com.jetbrains.python.PyToolUIInfo
|
||||
import com.intellij.python.community.services.systemPython.icons.PythonCommunityServicesSystemPythonIcons
|
||||
import com.intellij.python.community.services.systemPython.SystemPythonProvider
|
||||
import com.intellij.python.community.services.systemPython.icons.PythonCommunityServicesSystemPythonIcons
|
||||
import com.jetbrains.python.PyToolUIInfo
|
||||
import com.jetbrains.python.PythonBinary
|
||||
import com.jetbrains.python.errorProcessing.PyResult
|
||||
import kotlinx.coroutines.Dispatchers
|
||||
@@ -47,6 +47,7 @@ private class AsdfSystemPythonProvider : SystemPythonProvider {
|
||||
return@withContext collectPythonsInPaths(eelApi, paths, listOf(python3NamePattern))
|
||||
}
|
||||
catch (e: RuntimeException) {
|
||||
if (Logger.shouldRethrow(e)) throw e
|
||||
LOGGER.error("failed to discover asdf pythons", e)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user