Merge pull request #17724 from Ultimaker/CURA-11289

CURA-11289
This commit is contained in:
HellAholic 2023-12-22 10:03:35 +01:00 committed by GitHub
commit 9dae927c17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1837,8 +1837,11 @@ class CuraApplication(QtApplication):
self.readLocalFile(QUrl.fromLocalFile(tmp.name), add_to_recent_files=False)
def on_error():
def on_error(*args, **kwargs):
Logger.log("w", "Could not download file from {0}".format(model_url.url()))
Message("Could not download file: " + str(model_url.url()),
title= "Loading Model failed",
message_type=Message.MessageType.ERROR).show()
return
self.getHttpRequestManager().get(