mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -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)
|
output_device_manager.removeOutputDevice(device.key)
|
||||||
|
|
||||||
def _createMachineFromDiscoveredDevice(self, key: str, activate: bool = True) -> bool:
|
def _createMachineFromDiscoveredDevice(self, key: str, activate: bool = True) -> bool:
|
||||||
device = self._remote_clusters[key]
|
device = self._remote_clusters.get(key)
|
||||||
if not device:
|
if not device:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue