From 741e113b412fc26cd1b81cc82ee8ea80e075b451 Mon Sep 17 00:00:00 2001 From: Benjamin Kiessling Date: Thu, 21 Nov 2024 17:42:24 +0100 Subject: [PATCH] stupid syntax error in dataset compilation --- kraken/lib/arrow_dataset.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kraken/lib/arrow_dataset.py b/kraken/lib/arrow_dataset.py index dd5548462..243b77eb8 100644 --- a/kraken/lib/arrow_dataset.py +++ b/kraken/lib/arrow_dataset.py @@ -48,8 +48,8 @@ def _extract_line(xml_record, skip_empty_lines: bool = True, legacy_polygons: bo lines = [] try: im = Image.open(xml_record.imagename) - if is_bitonal(im): - im = im.convert('1') + if is_bitonal(im): + im = im.convert('1') except (OSError, FileNotFoundError, UnidentifiedImageError): return lines, None, None for idx, rec in enumerate(xml_record.lines):