Open NavreetGill opened 3 years ago
If Purifier's init raises an exception, IOCareApi object's discover_devices fails to properly finish initialize IOCareApi object:
Steps to reproduce:
Expected:
Actual: API object cannot be initialized due to the unhandled KeyError.
Guessing this line needs to handle the KeyError https://github.com/evandcoleman/python-iocare/blob/b6baac02f2f879667ccfc3e595dafb6dcccdc3c4/iocare/iocareapi.py#L161
Fixed by #6
If Purifier's init raises an exception, IOCareApi object's discover_devices fails to properly finish initialize IOCareApi object:
Steps to reproduce:
Expected:
Actual: API object cannot be initialized due to the unhandled KeyError.
Guessing this line needs to handle the KeyError https://github.com/evandcoleman/python-iocare/blob/b6baac02f2f879667ccfc3e595dafb6dcccdc3c4/iocare/iocareapi.py#L161