Fix an warning when a printer has a timeout before it has been fully discovered

CURA-1851
This commit is contained in:
fieldOfView 2016-08-03 17:04:50 +02:00
parent 805c513034
commit 10be9e6674

View file

@ -68,6 +68,8 @@ class NetworkPrinterOutputDevicePlugin(OutputDevicePlugin):
## Handler for when the connection state of one of the detected printers changes
def _onPrinterConnectionStateChanged(self, key):
if key not in self._printers:
return
if self._printers[key].isConnected():
self.getOutputDeviceManager().addOutputDevice(self._printers[key])
else: