mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 15:57:52 -06:00
Don't explode the log with errors when there's no cloud response
This commit is contained in:
parent
dbb8514a6a
commit
7a9dbe3a3f
1 changed files with 3 additions and 0 deletions
|
@ -159,6 +159,9 @@ class CloudApiClient:
|
||||||
model: Type[CloudApiClientModel],
|
model: Type[CloudApiClientModel],
|
||||||
) -> None:
|
) -> None:
|
||||||
def parse() -> None:
|
def parse() -> None:
|
||||||
|
# Don't try to parse the reply if we didn't get one
|
||||||
|
if reply.attribute(QNetworkRequest.HttpStatusCodeAttribute) is None:
|
||||||
|
return
|
||||||
status_code, response = self._parseReply(reply)
|
status_code, response = self._parseReply(reply)
|
||||||
self._anti_gc_callbacks.remove(parse)
|
self._anti_gc_callbacks.remove(parse)
|
||||||
return self._parseModels(response, on_finished, model)
|
return self._parseModels(response, on_finished, model)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue