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

Skip logging CoreBlueooth scanner error if running as .app #728

Merged
merged 2 commits into from
Jan 27, 2022

Conversation

dlech
Copy link
Collaborator

@dlech dlech commented Jan 10, 2022

Based on further insights from #720, we should be able to suppress this error if bleak is being used within a .app.

dlech added 2 commits January 10, 2022 14:26
If bleak is running in a .app (e.g. created with py2app), then scanning
in macOS 12 works as it did in previous versions, so we don't need to
log the error. We can determine this by checking the bundle id since
Python itself is a .app and has a bundle id.

Related: #720
@dlech dlech added the Backend: Core Bluetooth Issues and PRs relating to the Core Bluetooth backend label Jan 10, 2022
@dlech dlech merged commit 6ca3917 into develop Jan 27, 2022
@dlech dlech deleted the macos-background-bug branch January 27, 2022 22:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backend: Core Bluetooth Issues and PRs relating to the Core Bluetooth backend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant