diff --git a/python/src/com/jetbrains/python/run/PythonScripts.kt b/python/src/com/jetbrains/python/run/PythonScripts.kt index 6e68d615689d..18e835eb5840 100644 --- a/python/src/com/jetbrains/python/run/PythonScripts.kt +++ b/python/src/com/jetbrains/python/run/PythonScripts.kt @@ -226,7 +226,11 @@ fun TargetEnvironmentRequest.ensureProjectAndModuleDirsAreOnTarget(project: Proj } for(module in modules) { ModuleRootManager.getInstance(module).contentRoots.forEach { - addPathToVolume(it.toNioPath()) + try { + addPathToVolume(it.toNioPath()) + } + catch (_: UnsupportedOperationException) { + } } } project.basePath?.let { addPathToVolume(Path.of(it)) }