From 143f796ba6a8ffb6da2818254083edc92074d669 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 30 Aug 2022 13:13:32 +0200 Subject: [PATCH] Use get instead of direct [] The next line (checking if the result is None) doesn't make sense otherwise CURA-8463 --- .../UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py index 5206abcc34..245914d1b9 100644 --- a/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py +++ b/plugins/UM3NetworkPrinting/src/Cloud/CloudOutputDeviceManager.py @@ -346,7 +346,7 @@ class CloudOutputDeviceManager: output_device_manager.removeOutputDevice(device.key) def _createMachineFromDiscoveredDevice(self, key: str, activate: bool = True) -> bool: - device = self._remote_clusters[key] + device = self._remote_clusters.get(key) if not device: return False