수정 내용 주석 추가
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user