hoctransform: fix deprecation warning

This commit is contained in:
James R. Barlow
2021-08-28 02:11:33 -07:00
parent 95d9e8d91a
commit b91096c615
+1 -1
View File
@@ -349,7 +349,7 @@ class HocrTransform:
interword_spaces: bool,
show_bounding_boxes: bool,
):
if not line:
if line is not None:
return
pxl_line_coords = self.element_coordinates(line)
line_box = self.pt_from_pixel(pxl_line_coords)