Skip to content

Conversation

@bmjcode
Copy link
Collaborator

@bmjcode bmjcode commented Aug 26, 2025

This avoids an AttributeError if the last object in a ScorePart's barlist is not a Bar. For example, \addlyrics blocks are represented by simple Python lists rather than Bar objects.

Fixes #69.

This avoids an AttributeError if the last object in a ScorePart's
barlist is not a Bar. For example, \addlyrics blocks are represented by
simple Python lists rather than Bar objects.

Fixes #69.
Copy link
Member

@fedelibre fedelibre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've tested it and I confirm it fixes the issue

@bmjcode bmjcode merged commit 086e55f into master Sep 2, 2025
3 of 7 checks passed
@bmjcode bmjcode deleted the fix-musicxml-iterate-part branch September 2, 2025 11:22
@lruzicka
Copy link

lruzicka commented Sep 8, 2025

Thank you very much for your work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ly.musicxml export - AttributeError: 'list' object has no attribute 'obj_list'

4 participants