🎁📬❄️📦 Holiday Shipping Deadlines are approaching! International customers and domestic ground - get your orders in 12/9/2020 📦❄️📬🎁
0

What's best way to deal with _bleio.ConnectionError change?
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

What's best way to deal with _bleio.ConnectionError change?

by kevinjwalters on Fri Nov 20, 2020 12:06 pm

I just checked my code for use of _bleio.ConnectionError as this has been removed from CircuitPython 6.x. I'm not affected but I saw some other code which is. What's the best way to cater for code running under both 5.x and 6.x and keep static analysers like pylint useful?

FYI, I put feedback in for the three programs in the Adafruit Guides which are affected by this change.

kevinjwalters
 
Posts: 790
Joined: Sun Oct 01, 2017 3:15 pm

Re: What's best way to deal with _bleio.ConnectionError chan

by tannewt on Mon Nov 23, 2020 6:10 pm

Here is how I've made the libraries support both: https://github.com/adafruit/Adafruit_Ci ... ll/6/files

tannewt
 
Posts: 1922
Joined: Thu Oct 06, 2016 8:48 pm

Please be positive and constructive with your questions and comments.