Skip to content

platform_info: also catch OSError from Windows WMI calls in platform.platform()#5098

Open
SAY-5 wants to merge 1 commit intoAider-AI:mainfrom
SAY-5:say5/platform-info-os-error-3464
Open

platform_info: also catch OSError from Windows WMI calls in platform.platform()#5098
SAY-5 wants to merge 1 commit intoAider-AI:mainfrom
SAY-5:say5/platform-info-os-error-3464

Conversation

@SAY-5
Copy link
Copy Markdown

@SAY-5 SAY-5 commented May 2, 2026

Fixes #3464.

get_platform_info already catches KeyError from platform.platform() (introduced after #1234-style traces). The user's Windows 11 trace shows the same function failing with OSError: [WinError 258] The wait operation timed out from _wmi.exec_query, which escapes the current handler and crashes aider before the first message round-trip. Extend the except clause to (KeyError, OSError) and keep the existing Platform information unavailable fallback.

…platform()

Signed-off-by: SAY-5 <say.apm35@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Uncaught KeyError in platform.py line 333

1 participant