Hi Werner,
Thanks for the bug report.
On Wed, Nov 16, 2011 at 05:46:55PM +0100, Werner LEMBERG wrote:
>
> Consider this (incorrect) input file `p.ly', consisting of a single
> line:
>
> \version "2.14."
>
> convert-ly bombs out with
> File "/usr/local/bin/convert-ly", line 172, in str_to_tuple
> return tuple ([int(n) for n in s.split ('.')])
> ValueError: invalid literal for int() with base 10: ''
It seems that the split() call in str_to_tuple() produces ['2','14',''] and
int('') throws ValueEror.
Root cause is that convert-ly.py fails to trap the malformed version string.
I'll enter is as a bug.
Cheers,
Colin.
--
Colin Hall
_______________________________________________
bug-lilypond mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-lilypond