mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06:00
Add defense for when active printer is None
This commit is contained in:
parent
f1df7b93c4
commit
99e2939801
1 changed files with 1 additions and 1 deletions
|
@ -256,7 +256,7 @@ class CloudOutputDevice(NetworkedPrinterOutputDevice):
|
|||
remote_printers_keys = [printer_data.uuid for printer_data in remote_printers]
|
||||
removed_printers = [printer for printer in self._printers if printer.key not in remote_printers_keys]
|
||||
for removed_printer in removed_printers:
|
||||
if self._active_printer.key == removed_printer.key:
|
||||
if self._active_printer and self._active_printer.key == removed_printer.key:
|
||||
self.setActivePrinter(None)
|
||||
|
||||
self._printers = new_printers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue