Changeset 2377
- Timestamp:
- 07/19/05 18:47:01 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/accounters/pjl.py
r2365 r2377 104 104 readnext = 1 # page counter is on next line 105 105 elif readnext : 106 actualpagecount = int(line.strip()) 107 self.parent.filter.logdebug("Found pages counter : %s" % actualpagecount) 108 readnext = 0 106 try : 107 actualpagecount = int(line.strip()) 108 except ValueError : 109 self.parent.filter.logdebug("Received incorrect datas (probably because of a signal) : [%s]" % line.strip()) 110 else : 111 self.parent.filter.logdebug("Found pages counter : %s" % actualpagecount) 112 readnext = 0 109 113 signal.alarm(0) 110 114 self.printerInternalPageCounter = max(actualpagecount, self.printerInternalPageCounter)