diff options
author | Thomas Weber <tw@notabit.eu> | 2015-12-15 08:07:13 +0000 |
---|---|---|
committer | James Lowe <pkx166h@gmail.com> | 2015-12-19 10:48:37 +0000 |
commit | e313fac84da1dcce559c9cfa549d57761aa9684a (patch) | |
tree | 76653ae8a10bd214752b272afd8026aa3b28b93b /scripts | |
parent | bfc3420ada8810d57156e9fc871560188f044a64 (diff) |
musicxml2ly: Make sure movement_title exists before using it
Fixes a problem that was
generated by Sibelius'
own internal MusicXML
export functionality
(not Dolet).
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/musicxml2ly.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index dda374d84e..5cf53339a4 100644 --- a/scripts/musicxml2ly.py +++ b/scripts/musicxml2ly.py @@ -178,7 +178,7 @@ def extract_score_information (tree): if work: work_title = work.get_work_title () set_if_exists ('title', work_title) - if work_title == '': + if work_title == '' and movement_title : set_if_exists ('title', movement_title.get_text ()) elif movement_title: set_if_exists ('subtitle', movement_title.get_text ()) |