polyfile icon indicating copy to clipboard operation
polyfile copied to clipboard

Runtime exception: 'NoneType' object is not subscriptable

Open tballison opened this issue 6 years ago • 0 comments

[Traceback (most recent call last):, File "/usr/local/bin/polyfile", line 11, in <module>, load_entry_point('polyfile', 'console_scripts', 'polyfile')(), File "/Users/allison/Documents/tob/polyfile/__main__.py", line 72, in main, for match in matcher.match(file_path, progress_callback=progress_callback):, File "/Users/allison/Documents/tob/polyfile/polyfile.py", line 170, in match, yield from submatch_iter, File "/Users/allison/Documents/tob/polyfile/pdf.py", line 288, in submatch, yield from parse_pdf(file_stream, matcher=self.matcher, parent=self), File "/Users/allison/Documents/tob/polyfile/pdf.py", line 282, in parse_pdf, yield from parse_object(file_stream, object, matcher=matcher, parent=parent), File "/Users/allison/Documents/tob/polyfile/pdf.py", line 126, in parse_object, oPDFParseDictionary = pdfparser.cPDFParseDictionary(object.content, False), File "/Users/allison/Documents/tob/polyfile/pdfparser.py", line 844, in __init__, self.parsed = self.ParseDictionary(dataTrimmed)[0], TypeError: 'NoneType' object is not subscriptable]

govdocs/706/706211.pdf

Let me know if I should attach the triggering file.

tballison avatar Nov 20 '19 18:11 tballison