Replies: 1 comment 2 replies
-
Hi @88arvin, I believe (without being able to see the actual PDF) that you're likely getting this error because of this line: flat_list = [item for sublist in lst for item in sublist] That line expects every non_nones = [sublist for sublist in lst if sublist is not None]
flat_list = [item for sublist in non_nones for item in sublist] ... which should filter out those |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Earlier, everything was OK and I could extract tables from PDFs, whether they were on one page or spread across numerous pages using the following code.
However, after updation some error (TypeError: 'NoneType' object is not iterable) is now appearing only in PDFs that have a table on the first page.
Does anyone know how to resolve this error?
Beta Was this translation helpful? Give feedback.
All reactions