[Jupyter] Add a check for Throwable rethrow in AsdfSystemProvider.kt

Some exception should always be rethrown

GitOrigin-RevId: 337cfc90af2c7f3232ad157d38030d3f0fca121f
This commit is contained in:
Alex Plate
2025-10-16 13:24:28 +00:00
committed by intellij-monorepo-bot
parent 8ab60bc079
commit e8b4bffc83
@@ -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)
}