mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
STAR-322: Removing devices when logging off
This commit is contained in:
parent
657e763318
commit
117cf10a2c
2 changed files with 7 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue