diff --git a/arguebuf/converters/from_ova.py b/arguebuf/converters/from_ova.py index 95e4153..b446733 100644 --- a/arguebuf/converters/from_ova.py +++ b/arguebuf/converters/from_ova.py @@ -73,8 +73,9 @@ def _inject_original_text( ) -> None: doc = html.fromstring(f"{raw_text}") text = "" + body = doc.find("body") - if body := doc.find("body"): + if body is not None: for elem in body.iter(): # Span elements need special handling if elem.tag == "span":