Adding debug message when type != 'printer'

Just for the case we lose a device at this point.
This commit is contained in:
Thomas Karl Pietrowski 2016-11-16 21:45:25 +01:00
parent bf670d325a
commit a52c62f6bb

View file

@ -194,6 +194,8 @@ class NetworkPrinterOutputDevicePlugin(OutputDevicePlugin):
if info.properties.get(b"type", None) == b'printer':
address = '.'.join(map(lambda n: str(n), info.address))
self.addPrinterSignal.emit(str(name), address, info.properties)
else:
Logger.log("w", "The type of the found device is '%s', not 'printer'! Ignoring.." % name)
else:
Logger.log("w", "Could not get information about %s" % name)