Changeset 2319 for pykota

Show
Ignore:
Timestamp:
06/17/05 15:16:48 (19 years ago)
Author:
jerome
Message:

Now catches errors due to interrupted select.select() calls

Files:
1 modified

Legend:

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

    r2305 r2319  
    2929import os 
    3030import time 
     31import select 
    3132 
    3233try : 
     
    8384            try : 
    8485                tsp.sendAndReceive(req.berEncode(), (self.printerHostname, 161), (self.handleAnswer, req)) 
    85             except SnmpOverUdpError, msg :     
     86            except (SnmpOverUdpError, select.error), msg :     
    8687                self.parent.filter.printInfo(_("Network error while doing SNMP queries on printer %s : %s") % (self.printerHostname, msg), "warn") 
    8788            tsp.close()