From faefe14f7344e2fac3afb0ff58a94a714bf87636 Mon Sep 17 00:00:00 2001 From: waterdrw Date: Sat, 18 Jan 2025 00:21:03 +0900 Subject: [PATCH] =?UTF-8?q?=EC=88=98=EC=A0=95=20=EB=82=B4=EC=9A=A9=20?= =?UTF-8?q?=EC=A3=BC=EC=84=9D=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- score5.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/score5.py b/score5.py index 95cb5b8..ad9e5f9 100644 --- a/score5.py +++ b/score5.py @@ -107,6 +107,7 @@ class XMLScorer: 'c': 'http://schemas.openxmlformats.org/drawingml/2006/chart' } + # 차트 XML 파일이 없는 경우 0점 채점을 위헤 빈 XML 생성 if chart_xml is None: chart_tree = ET.fromstring('') else: @@ -259,6 +260,7 @@ class XMLScorer: print(end) xml_data = decoded_data[start:end+len(b'')] + # xml 데이터가 없는 경우 None을 반환합니다. if -1 in [start, end]: return None