Replies: 2 comments
-
|
To be pedantic... 😄 A It doesn't make sense to make up our own error names and use Another way of looking at it is that |
Beta Was this translation helpful? Give feedback.
-
|
Gotcha. Thanks for the great response! As someone developing something cross-platform it's a big help that you've kept it consistent. Often when you start poking around in unknown waters, things can seem strange at first, but you learn that smart and informed people have already made reasonable decisions before you came along. This is just a great example of why it's nice to use a library. Thanks again for abstracting all that away so that the rest of us can have fun dancing on top of it all :) |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
OK maybe this is way too pedantic, but I see an error being raised as a general "BleakError" that I'm wondering should maybe be a "BleakDBusError".
File...
/bleak/backends/bluezdbus/manager.py
Method...
BlueZManager.get_default_adapter()
The docstring says "Gets the D-Bus object path of of the first powered Bluetooth adapter." but it raises a general "BleakError".
Since this method is specifically about the D-Bus, shouldn't it raise a "BleakDBusError" instead?
I mean, you have an error class specifically about that. Isn't this the right place to use it?
I don't know enough about all this stuff to say, but it seemed strange to me. Anyways, thanks for the great library and for all the hard work :)
Beta Was this translation helpful? Give feedback.
All reactions