balena-sdk-python
balena-sdk-python copied to clipboard
SDK does not handle request exceptions
When the SDK makes requests to the Balena API, it will not catch exceptions raised by the requests package. These exceptions then bubble up to the SDK client. I think it would be nice for the SDK to catch these and return something to the client to indicate the operation failed instead of not handling the exception. The instance I encountered was a call with balena.models.supervisor.reboot()
resulting in a requests.exceptions.ReadTimeout
.