수정 내용 주석 추가

This commit is contained in:
2025-01-18 00:21:03 +09:00
parent a88e360327
commit faefe14f73

View File

@@ -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('<xml></xml>')
else:
@@ -259,6 +260,7 @@ class XMLScorer:
print(end)
xml_data = decoded_data[start:end+len(b'</c:chartSpace>')]
# xml 데이터가 없는 경우 None을 반환합니다.
if -1 in [start, end]:
return None