Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix panic on no networks being detected on MacOS #55

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

casept
Copy link

@casept casept commented Aug 6, 2023

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