Changeset 3028

Show
Ignore:
Timestamp:
10/05/06 18:41:21 (18 years ago)
Author:
jerome
Message:

Printer Off should be reported as an error.

Files:
1 modified

Legend:

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

    r3027 r3028  
    142142    def checkIfError(self, errorstates) :     
    143143        """Checks if any error state is fatal or not.""" 
    144         for err in errorstates : 
    145             if err in errorConditions : 
    146                 return True 
    147         return False     
     144        if errorstates is None : 
     145            return True 
     146        else : 
     147            for err in errorstates : 
     148                if err in errorConditions : 
     149                    return True 
     150            return False     
    148151         
    149152    def waitPrinting(self) :