From e313fac84da1dcce559c9cfa549d57761aa9684a Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Tue, 15 Dec 2015 08:07:13 +0000 Subject: [PATCH] musicxml2ly: Make sure movement_title exists before using it Fixes a problem that was generated by Sibelius' own internal MusicXML export functionality (not Dolet). --- scripts/musicxml2ly.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ()) -- 2.39.2