Changeset 1685
- Timestamp:
- 08/28/04 00:49:04 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/accounters/hardware.py
r1680 r1685 22 22 # 23 23 # $Log$ 24 # Revision 1.10 2004/08/27 22:49:04 jalet 25 # No answer from subprocess now is really a fatal error. Waiting for some 26 # time to make this configurable... 27 # 24 28 # Revision 1.9 2004/08/25 22:34:39 jalet 25 29 # Now both software and hardware accounting raise an exception when no valid … … 72 76 """Returns the printer's internal page counter.""" 73 77 self.filter.logdebug("Reading printer's internal page counter...") 74 try : 75 counter = self.askPrinterPageCounter(self.filter.printerhostname) 76 except PyKotaAccounterError, msg : 77 # can't get actual page counter, assume printer is off or warming up 78 # log the message anyway. 79 self.filter.printInfo("%s" % msg, "warn") 80 counter = None 78 counter = self.askPrinterPageCounter(self.filter.printerhostname) 81 79 self.filter.logdebug("Printer's internal page counter value is : %s" % str(counter)) 82 80 return counter