mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 11:53:13 +08: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
@ -608,7 +608,7 @@ class Toolbox(QObject, Extension):
|
||||
# Check for errors:
|
||||
if "errors" in json_data:
|
||||
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")
|
||||
return
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user