Fix import order for Windows PowerShell support (#11557)

This commit is contained in:
மனோஜ்குமார் பழனிச்சாமி
2025-11-03 23:44:23 +05:30
committed by GitHub
parent b31dbfc21a
commit 2a98cd9338

View File

@@ -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 = """