mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 17:57:55 -06:00
Don't crash if the returned error has no title
Fixes sentry issue CURA-23P
This commit is contained in:
parent
45f5a222f0
commit
361bd8c6b1
1 changed files with 1 additions and 1 deletions
|
@ -608,7 +608,7 @@ class Toolbox(QObject, Extension):
|
||||||
# Check for errors:
|
# Check for errors:
|
||||||
if "errors" in json_data:
|
if "errors" in json_data:
|
||||||
for error in json_data["errors"]:
|
for error in json_data["errors"]:
|
||||||
Logger.log("e", "Request type [%s] got response showing error: %s", error["title"])
|
Logger.log("e", "Request type [%s] got response showing error: %s", error.get("title", "No error title found"))
|
||||||
self.setViewPage("errored")
|
self.setViewPage("errored")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue