Skip to content

Commit

Permalink
Fix error reporting failure
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Mar 5, 2022
1 parent 62130f5 commit 5302538
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion music21/musicxml/m21ToXml.py
Original file line number Diff line number Diff line change
Expand Up @@ -2564,7 +2564,9 @@ def parse(self):
mxMeasure = measureExporter.parse()
except MusicXMLExportException as e:
e.measureNumber = str(m.number)
e.partName = self.stream.partName
if isinstance(self.stream, stream.Part):
e.partName = self.stream.partName
# else: could be a Score without parts (flat)
raise e
self.xmlRoot.append(mxMeasure)

Expand Down

0 comments on commit 5302538

Please sign in to comment.