Skip to content

Commit

Permalink
Update hocr_extract_g1000.py
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan6419846 authored Dec 30, 2023
1 parent c21a83a commit 886a535
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hocr_tools_lib/tools/hocr_extract_g1000.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ def startElement(self, name: str, attrs: dict[str, str]) -> None: # noqa: N802
self.image = Image.open(self.page)
if attrs.get("class", "") == self.element:
self.lineno += 1
props: = attrs.get("title", None)
props = attrs.get("title", None)
if props is not None:
self.bbox = get_prop(props, "bbox") # type: ignore[arg-type] # FIXME
else:
Expand Down

0 comments on commit 886a535

Please sign in to comment.