From 63c33b8e5f98827e5812fe53d00561df6927c59a Mon Sep 17 00:00:00 2001 From: pamfilos Date: Thu, 12 Dec 2024 18:52:04 +0100 Subject: [PATCH] iop: fix for ElementTree parsing - 2 Signed-off-by: pamfilos --- dags/iop/iop_process_file.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dags/iop/iop_process_file.py b/dags/iop/iop_process_file.py index cbcad2f8..00d7ac2c 100644 --- a/dags/iop/iop_process_file.py +++ b/dags/iop/iop_process_file.py @@ -34,7 +34,7 @@ def convert_xml_to_et_tree(input): xml = process_xml(input) xml = ET.fromstring(xml) - except ET.ParseError: + except (ET.ParseError, TypeError): xml = process_xml(input, italics=False) xml = ET.fromstring(xml)