Skip to content

Replace _bleio.ConnectionError with the native version #3523

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

Merged
merged 2 commits into from
Oct 8, 2020

Conversation

tannewt
Copy link
Member

@tannewt tannewt commented Oct 8, 2020

Replace uses of _bleio.ConnectionError with regular ConnectionError

Fixes #3008

Replace uses of _bleio.ConnectionError with regular ConnectionError

Fixes micropython#3008
dhalbert
dhalbert previously approved these changes Oct 8, 2020
Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm! Thanks for doing this!

Copy link
Collaborator

@dhalbert dhalbert left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few libraries have examples that use _bleio.ConnectionError:

ibraries/helpers/ble_magic_light/README.rst
103:                    except _bleio.ConnectionError:

libraries/helpers/ble_magic_light/examples/ble_magic_light_simpletest.py
46:                except _bleio.ConnectionError:  # pylint: disable=no-member

libraries/helpers/ble_berrymed_pulse_oximeter/examples/ble_berrymed_pulse_oximeter_simpletest.py
59:    except _bleio.ConnectionError:  # pylint: disable=no-member
62:        except _bleio.ConnectionError:  # pylint: disable=no-member

@tannewt tannewt merged commit b578afa into adafruit:main Oct 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

_bleio.ConnectionError conflicts with standard exception ConnectionError
2 participants