mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue