On 10/14/10 06:35 PM, Keith Mitchell wrote:
On 10/14/10 09:16 AM, Jan Damborsky wrote:
On 10/14/10 06:02 PM, Keith Mitchell wrote:
Hi Jan, Joe,
The short answer, for this situation, is that you're both right. In
'normal' Python code, you'd want to trap *just* on the IndexError,
as it's the only expected exception for the code in question.
However, since this is ict.py, trapping on StandardError is better,
because the install-finish script will break if any single ICT has
an uncaught exception - see for example
https://defect.opensolaris.org/bz/show_bug.cgi?id=13666. (That's a
general problem with how ICTs and install-finish are written, and
one I'd like to see fixed at some point...)
Hi Keith,
thank you very much for looking into this !
If 'IndexError' is the only exception which could be raised in this
case,
then despite of being in ict.py, aren't we safe if we trap only on
IndexError,
since 'uncaught exception' scenario can't happen ?
Jan
Yes, that's true.
ok. Then let's give Joe's suggestion a try :-)
Thanks a lot !
Jan
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss