From e8b4bffc83a395b9b5cc73780fb44672020c3e83 Mon Sep 17 00:00:00 2001 From: Alex Plate Date: Thu, 16 Oct 2025 13:24:48 +0300 Subject: [PATCH] [Jupyter] Add a check for Throwable rethrow in AsdfSystemProvider.kt Some exception should always be rethrown GitOrigin-RevId: 337cfc90af2c7f3232ad157d38030d3f0fca121f --- .../systemPython/impl/providers/AsdfSystemProvider.kt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/services/system-python/src/com/intellij/python/community/services/systemPython/impl/providers/AsdfSystemProvider.kt b/python/services/system-python/src/com/intellij/python/community/services/systemPython/impl/providers/AsdfSystemProvider.kt index 456b68d2ef46..ba6b4e5cf6e9 100644 --- a/python/services/system-python/src/com/intellij/python/community/services/systemPython/impl/providers/AsdfSystemProvider.kt +++ b/python/services/system-python/src/com/intellij/python/community/services/systemPython/impl/providers/AsdfSystemProvider.kt @@ -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) }