bencorrado / pmsensor

Library to read data from particulate matter sensors
MIT License
20 stars 15 forks source link

Raise exception instead of returning None #3

Closed herm closed 1 year ago

herm commented 7 years ago

When an error occurs raising an exception is more appropriate than returning None.

ghost commented 7 years ago

Feel free to provide a pull request. However, not that this changes the behaviour of the API, therefore this has to be done carefully. It will require a major update.