STAR-322: Removing devices when logging off

This commit is contained in:
Daniel Schiavini 2018-12-05 16:26:20 +01:00
parent 657e763318
commit 117cf10a2c
2 changed files with 7 additions and 1 deletions

View file

@ -129,7 +129,7 @@ class CloudApiClient(NetworkClient):
data = response["data"]
result = [model(**c) for c in data] if isinstance(data, list) else model(**data)
on_finished(result)
elif "error" in response:
elif "errors" in response:
self._on_error([CloudErrorObject(**error) for error in response["errors"]])
else:
Logger.log("e", "Cannot find data or errors in the cloud response: %s", response)