Skip to content

🙌 OpenHands: AI-Driven Development

Fix import order for Windows PowerShell support (#11557)

மனோஜ்குமார் பழனிச்சாமி2a98cd933890
diff --git a/openhands/runtime/impl/cli/cli_runtime.py b/openhands/runtime/impl/cli/cli_runtime.py
index acac7441f3..ae4752c2a8 100644
--- a/openhands/runtime/impl/cli/cli_runtime.py
+++ b/openhands/runtime/impl/cli/cli_runtime.py
@@ -57,8 +57,8 @@ if TYPE_CHECKING:
# Import Windows PowerShell support if on Windows
if sys.platform == 'win32':
try:
- from openhands.runtime.utils.windows_bash import WindowsPowershellSession
from openhands.runtime.utils.windows_exceptions import DotNetMissingError
+ from openhands.runtime.utils.windows_bash import WindowsPowershellSession # isort: skip
except (ImportError, DotNetMissingError) as err:
# Print a user-friendly error message without stack trace
friendly_message = """