Changeset 1685

Show
Ignore:
Timestamp:
08/28/04 00:49:04 (20 years ago)
Author:
jalet
Message:

No answer from subprocess now is really a fatal error. Waiting for some
time to make this configurable...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/accounters/hardware.py

    r1680 r1685  
    2222# 
    2323# $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# 
    2428# Revision 1.9  2004/08/25 22:34:39  jalet 
    2529# Now both software and hardware accounting raise an exception when no valid 
     
    7276        """Returns the printer's internal page counter.""" 
    7377        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) 
    8179        self.filter.logdebug("Printer's internal page counter value is : %s" % str(counter)) 
    8280        return counter