Skip to content

Fix panic on no networks being detected on MacOS#55

Open
casept wants to merge 1 commit into
booyaa:mainfrom
casept:fix-macos-empty-netlist
Open

Fix panic on no networks being detected on MacOS#55
casept wants to merge 1 commit into
booyaa:mainfrom
casept:fix-macos-empty-netlist

Conversation

@casept

@casept casept commented Aug 6, 2023

Copy link
Copy Markdown

Sometimes, airport prints an error message to the terminal instead of returning nothing when no networks are found, causing a panic when trying to parse the output later. Take this into account. Tested on MacOS Ventura.

I had a brief look at the airport binary, it seems like the error messages are not translated and this fix should therefore also work on non-english systems.

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.

1 participant