mirror of
https://github.com/deepset-ai/haystack.git
synced 2026-01-06 03:57:19 +00:00
fix: ParsrConverter fails on pages without text (#3605)
* try to fix bug * remove print * leftover
This commit is contained in:
parent
7e0aa82eb8
commit
5f62494105
@ -186,7 +186,7 @@ class ParsrConverter(BaseConverter):
|
||||
id_hash_keys,
|
||||
)
|
||||
tables.append(table)
|
||||
if text[-1] != "\f":
|
||||
if len(text) == 0 or text[-1] != "\f":
|
||||
text += "\f"
|
||||
|
||||
if valid_languages:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user