From 31a431564a07ed4f2bb9860959596dbc67d26377 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Sun, 7 Jan 2007 03:33:16 +0100 Subject: [PATCH] Fix another instance of bar number problem in musicxml2ly --- scripts/musicxml2ly.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index 77fffc25fe..cab011a9d9 100644 --- a/scripts/musicxml2ly.py +++ b/scripts/musicxml2ly.py @@ -335,7 +335,10 @@ def musicxml_voice_to_lily_voice (voice): continue if n.is_first () and n._measure_position == Rational (0): - num = int (n.get_parent ().number) + try: + num = int (n.get_parent ().number) + except ValueError: + num = 0 voice_builder.add_bar_check (num) main_event = musicxml_note_to_lily_main_event (n) -- 2.39.5