Changeset 3491 for pkpgcounter

Show
Ignore:
Timestamp:
02/17/09 21:47:24 (13 years ago)
Author:
jerome
Message:

Fix for some strange looking PCLXL files, workaround until I receive the testcase...

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pkpgcounter/trunk/pkpgpdls/pclxl.py

    r3474 r3491  
    164164                            raise pdlparser.PDLParserError, "Error on size at %s : %s" % (pos+2, length) 
    165165                        break 
    166                 mediatypelabel = minfile[startpos:startpos+size] 
     166                try : 
     167                    mediatypelabel = minfile[startpos:startpos+size] 
     168                except TypeError : 
     169                    self.logdebug("PCL/XL parser problem at %i" % savepos) 
    167170                # self.logdebug("Media type : %s" % mediatypelabel) 
    168171            elif val == 0x34 :