palazzem / econnect-python

API adapter used to control programmatically an Elmo alarm system
BSD 3-Clause "New" or "Revised" License
8 stars 5 forks source link

fix(log)!: `Invalid*` exceptions replaced with `CommandError`; errors are logged with the API response #137

Closed palazzem closed 8 months ago

palazzem commented 8 months ago

Related Issues

Proposed Changes:

Instead of raising multiple exceptions and assuming what the error is, we raise a single CommandError exception when any command fails. Furthermore, we log the actual backend response, if any.

Testing:

n/a

Extra Notes (optional):

n/a

Checklist

coveralls commented 8 months ago

Pull Request Test Coverage Report for Build 7745958230


Totals Coverage Status
Change from base Build 7745724435: 0.0%
Covered Lines: 374
Relevant Lines: 374

💛 - Coveralls