diff options
author | Ghostkeeper <rubend@tutanota.com> | 2021-10-12 18:38:47 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2021-10-12 18:38:47 +0300 |
commit | 2d53a548dca55af8e81bc49102004e230c09e03d (patch) | |
tree | 5d6b31eff4088ec3dee3a5107b8da803b9b15bc4 /cura/PrinterOutput | |
parent | bfb8d9ddf177e94c02f4f8d523d29a7b78d429e7 (diff) |
Remove superfluous error handling
If there is an error, it'll go into onError and handle the error there.
Contributes to issue CURA-8609.
Diffstat (limited to 'cura/PrinterOutput')
-rw-r--r-- | cura/PrinterOutput/UploadMaterialsJob.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/cura/PrinterOutput/UploadMaterialsJob.py b/cura/PrinterOutput/UploadMaterialsJob.py index 8664e5b714..0c80ec94dc 100644 --- a/cura/PrinterOutput/UploadMaterialsJob.py +++ b/cura/PrinterOutput/UploadMaterialsJob.py @@ -98,11 +98,6 @@ class UploadMaterialsJob(Job): ) def onUploadRequestCompleted(self, reply: "QNetworkReply", error: Optional["QNetworkReply.NetworkError"]): - if error is not None: - Logger.error(f"Could not request URL to upload material archive to: {error}") - self.failed(UploadMaterialsError(catalog.i18nc("@text:error", "Failed to connect to Digital Factory."))) - return - response_data = HttpRequestManager.readJSON(reply) if response_data is None: Logger.error(f"Invalid response to material upload request. Could not parse JSON data.") @@ -130,11 +125,6 @@ class UploadMaterialsJob(Job): ) def onUploadCompleted(self, reply: "QNetworkReply", error: Optional["QNetworkReply.NetworkError"]): - if error is not None: - Logger.error(f"Failed to upload material archive: {error}") - self.failed(UploadMaterialsError(catalog.i18nc("@text:error", "Failed to connect to Digital Factory."))) - return - for container_stack in self._printer_metadata: cluster_id = container_stack["um_cloud_cluster_id"] printer_id = container_stack["host_guid"] |