mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-20 02:29:08 +08:00
Use get instead of direct []
The next line (checking if the result is None) doesn't make sense otherwise CURA-8463
This commit is contained in:
parent
587d71bb57
commit
143f796ba6
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user