- Timestamp:
- 09/29/05 10:44:49 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/accounters/pjl.py
r2506 r2523 78 78 sock.connect((self.printerHostname, self.port)) 79 79 except socket.error, msg : 80 self.parent.filter.printInfo(_("Problem during connection to %s:%s : %s") % (self.printerHostname, self.port, msg), "warn")80 self.parent.filter.printInfo(_("Problem during connection to %s:%s : %s") % (self.printerHostname, self.port, str(msg)), "warn") 81 81 else : 82 82 self.parent.filter.logdebug("Connected to printer %s" % self.printerHostname) … … 84 84 sock.send(pjlMessage) 85 85 except socket.error, msg : 86 self.parent.filter.printInfo(_("Problem while sending PJL query to %s:%s : %s") % (self.printerHostname, self.port, msg), "warn")86 self.parent.filter.printInfo(_("Problem while sending PJL query to %s:%s : %s") % (self.printerHostname, self.port, str(msg)), "warn") 87 87 else : 88 88 self.parent.filter.logdebug("Query sent to %s : %s" % (self.printerHostname, repr(pjlMessage))) … … 97 97 self.parent.filter.logdebug("I/O Error [%s] : alarm handler probably called" % msg) 98 98 break # our alarm handler was launched, probably 99 except socket.error :100 self.parent.filter.printInfo(_("Problem while receiving PJL answer from %s:%s : %s") % (self.printerHostname, self.port, msg), "warn")99 except socket.error, msg : 100 self.parent.filter.printInfo(_("Problem while receiving PJL answer from %s:%s : %s") % (self.printerHostname, self.port, str(msg)), "warn") 101 101 else : 102 102 readnext = 0