[Top][All Lists]
[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
From: |
Han-Wen Nienhuys |
Subject: |
Re: [PATCH]: musicxml2ly: Don't crash when a score does not have a key or clef set |
Date: |
Sun, 19 Aug 2007 14:26:38 -0300 |
User-agent: |
Thunderbird 2.0.0.5 (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.
>
> Cheers,
> Reinhold
>
+ children = None
should be []
+ try:
+ children = attrs.get_named_children (k)
+ except KeyError:
+ pass
Don't use exceptions here. Looks like class_dict should have another member.
--
Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen