Changeset 1735 for pykota/trunk
- Timestamp:
- 09/22/04 21:22:27 (20 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/accounters/hardware.py
r1734 r1735 22 22 # 23 23 # $Log$ 24 # Revision 1.20 2004/09/22 19:22:27 jalet 25 # Just loop in case a network error occur 26 # 24 27 # Revision 1.19 2004/09/22 14:29:01 jalet 25 28 # Fixed nasty typo … … 101 104 102 105 try : 106 from pysnmp.mapping.udp import SnmpOverUdpError 103 107 from pysnmp.mapping.udp.role import Manager 104 108 from pysnmp.proto.api import alpha … … 135 139 try : 136 140 tsp.sendAndReceive(req.berEncode(), (self.printerHostname, 161), (self.handleAnswer, req)) 137 except pysnmp.mapping.udp.SnmpOverUdpError, msg :138 raise PyKotaAccounterError, _("Network error while doing SNMP queries : %s") % msg141 except SnmpOverUdpError, msg : 142 self.parent.filter.printInfo(_("Network error while doing SNMP queries : %s") % msg, "warn") 139 143 tsp.close() 140 144