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?

-j

On Mon, Oct 20, 2008 at 07:55:41PM -0500, Shawn Walker wrote:
> Greetings,
> 
> The following webrev contains fixes for the following issues:
>    4010 history traceback error when login isn't available via os.getlogin()
> 
> webrev:
> http://cr.opensolaris.org/~swalker/pkg-4010/
> 
> Change Summary
> ==============
> * Altered getusername / getuserid in portable to use the fallback path 
> if any exception is encountered while attempting to use os.getlogin().
> 
> Cheers,
> -- 
> Shawn Walker
> _______________________________________________
> pkg-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to