From: Thomas Weber Date: Tue, 15 Dec 2015 08:07:13 +0000 (+0000) Subject: musicxml2ly: Make sure movement_title exists before using it X-Git-Tag: release/2.19.34-1~5^2~3 X-Git-Url: https://git.donarmstrong.com/?p=lilypond.git;a=commitdiff_plain;h=e313fac84da1dcce559c9cfa549d57761aa9684a musicxml2ly: Make sure movement_title exists before using it Fixes a problem that was generated by Sibelius' own internal MusicXML export functionality (not Dolet). --- 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 ())