[mythtv-users] lirc woes with serial_ir kernel module
Alec Leamas
leamas.alec at gmail.com
Fri Jun 2 18:12:39 UTC 2017
On 02/06/17 18:37, Hika van den Hoven wrote:
_______
>
> Why not instead of failing, taking the first or last occurrence and
> adding a message to the log "Ignoring second occurrence of ....". It's
> more friendly by not failing and still clear.
Partly because this is using the standard python ConfigParser which
doesn't easily lend itself to such things.
And partly because trying to understand the user's intent in cases like
this too easily leads to madness. There are reasons compilers fails even
for simple errors like a missing semicolon rather then trying to guess
what should be there.
The patch I just checked in generates the correct error message:
"while reading from 'foo.conf' [line 34]: option 'code1' in section
'modinit' already exists". IMHO, this is the proper fix. The message is
generated by ConfigParser, so it's not only for this case.
Cheers!
--alec
More information about the mythtv-users
mailing list