- Timestamp:
- 11/19/04 11:35:37 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/accounters/hardware.py
r1933 r1948 22 22 # 23 23 # $Log$ 24 # Revision 1.33 2004/11/19 10:35:37 jalet 25 # Catches TypeMismatchError in SNMP answer handling code 26 # 24 27 # Revision 1.32 2004/11/16 23:23:40 jalet 25 28 # Fixed internal PJL handling wrt the 35078 PowerSave mode. … … 145 148 146 149 try : 150 from pysnmp.asn1.encoding.ber.error import TypeMismatchError 147 151 from pysnmp.mapping.udp.error import SnmpOverUdpError 148 152 from pysnmp.mapping.udp.role import Manager … … 178 182 try : 179 183 tsp.sendAndReceive(req.berEncode(), (self.printerHostname, 161), (self.handleAnswer, req)) 180 except SnmpOverUdpError, msg :184 except (TypeMismatchError, SnmpOverUdpError), msg : 181 185 self.parent.filter.printInfo(_("Network error while doing SNMP queries on printer %s : %s") % (self.printerHostname, msg), "warn") 182 186 tsp.close()