[EMAIL PROTECTED] wrote: > I'm uneasy about applying a blanket exception handler in these cases. > Would it be sufficient to catch (AttributeError, EnvironmentError) > instead of just using except?
I originally wanted that approach, but as experience has taught us this far, this particular function seems to find new, innovative ways to fail every time. So far we've hit OSError, IOError, AttributeError and I think one or two others. Needless to say, I am not amused. As such, instead of continuing to find out (the hard way) all the possible failure cases for this apparently horribly buggy library function, I'd prefer to simply catch any exception and fallback. However, if you think EnvironmentError and AttributeError are sufficient, I'm willing to change it. I'm just tired of having to workaround this function. -- Shawn Walker _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
