[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH]: musicxml2ly: Don't crash when a score does not have a key o
Re: [PATCH]: musicxml2ly: Don't crash when a score does not have a key or clef set
Sun, 19 Aug 2007 14:26:38 -0300
Thunderbird 188.8.131.52 (X11/20070719)
Reinhold Kainhofer escreveu:
> Attached is another git patch for musicxml2ly to make it not crash, when a
> score does not have a key or a clef set in the .xml file. Rosegarden produces
> such files.
+ children = None
should be 
+ children = attrs.get_named_children (k)
+ except KeyError:
Don't use exceptions here. Looks like class_dict should have another member.
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen