Changeset 3371

Show
Ignore:
Timestamp:
05/19/08 12:30:03 (12 years ago)
Author:
jerome
Message:

Fixed problem with printers sending empty result as the answer for their internal page counter.

Files:
1 modified

Legend:

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

    r3275 r3371  
    283283                self.initValues() 
    284284            else :                                  
    285                 self.printerInternalPageCounter = max(self.printerInternalPageCounter, int(varBinds[0][1].prettyPrint())) 
     285                self.printerInternalPageCounter = max(self.printerInternalPageCounter, int(varBinds[0][1].prettyPrint() or "0")) 
    286286                self.printerStatus = int(varBinds[1][1].prettyPrint()) 
    287287                self.deviceStatus = int(varBinds[2][1].prettyPrint())