Skip to content

Commit 60d3e28

Browse files
author
DL
committed
Fix condition when no tables are present in Azure table parser
1 parent 2489df2 commit 60d3e28

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/llmsearch/parsers/tables/azuredocint_parser.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,9 @@ def __init__(self, fn: Path, cache_folder: Path):
188188
def detect_and_parse_tables(self) -> List[AzureParsedTable]:
189189
tables = self.table_pages_extractor.extract_table_pages()
190190

191+
if not tables:
192+
return []
193+
191194
with ThreadPoolExecutor(max_workers=min(10, len(tables))) as executor:
192195
future_to_fn = {
193196
executor.submit(self._analyze_document, fn, page_mapping): (

0 commit comments

Comments
 (0)