From: Han-Wen Nienhuys Date: Sun, 7 Jan 2007 02:33:16 +0000 (+0100) Subject: Fix another instance of bar number problem in musicxml2ly X-Git-Tag: release/2.11.10-1~26 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=79d077255f08e2947ebc649c773a586046bdc33b;p=lilypond.git Fix another instance of bar number problem in musicxml2ly --- diff --git a/scripts/musicxml2ly.py b/scripts/musicxml2ly.py index ab5989dd6f..66774fa672 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)