diff options
-rw-r--r-- | printer.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -248,12 +248,12 @@ class PrinterManagerObserver(object): def find_Printer(self): try: - printerLoc = self._halmgr.FindDeviceByCapability('printer') + printerLocation = self._halmgr.FindDeviceByCapability('printer') except AttributeError and IndexError: logging.debug('No Print Device found') else: - for print in printerLoc: + for printerLoc in printerLocation: self.device_added(printerLoc) |