>From 12576c27e26693832659602bf883a3d08b04fa78 Mon Sep 17 00:00:00 2001 From: Thomas Weber Date: Sun, 13 Dec 2015 17:12:57 +0100 Subject: [PATCH] musicxml2ly: Make sure movement_title exists before using it --- scripts/musicxml2ly.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index dda374d..5cf5333 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 ()) -- 1.9.1