Changeset 3395 for pykota/branches

Show
Ignore:
Timestamp:
07/10/08 22:03:54 (16 years ago)
Author:
jerome
Message:

Works around some buggy printers. Fixes #19.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/branches/1.26_fixes/pykota/accounters/snmp.py

    r3190 r3395  
    285285                self.initValues() 
    286286            else :                                  
    287                 self.printerInternalPageCounter = max(self.printerInternalPageCounter, int(varBinds[0][1].prettyPrint())) 
     287                self.printerInternalPageCounter = max(self.printerInternalPageCounter, int(varBinds[0][1].prettyPrint() or "0")) 
    288288                self.printerStatus = int(varBinds[1][1].prettyPrint()) 
    289289                self.deviceStatus = int(varBinds[2][1].prettyPrint())