diff --git a/ly/musicxml/ly2xml_mediator.py b/ly/musicxml/ly2xml_mediator.py index e67004e..037c4ae 100644 --- a/ly/musicxml/ly2xml_mediator.py +++ b/ly/musicxml/ly2xml_mediator.py @@ -294,11 +294,12 @@ def check_part(self): def check_simultan(self): """Check done after simultanoues (<< >>) section.""" - if self.part: - self.part.merge_voice(self.sections[-1]) - elif len(self.sections)>1: - self.sections[-2].merge_voice(self.sections[-1]) - self.sections.pop() + if self.sections: + if self.part: + self.part.merge_voice(self.sections[-1]) + elif len(self.sections)>1: + self.sections[-2].merge_voice(self.sections[-1]) + self.sections.pop() def check_score(self): """