Please be aware that '%s' format strings may not call __str__ on exceptions when converting them strings. Instead, it may convert the arguments to the exception to a string instead.

http://bugs.python.org/issue6108

This appears to be the cause of bug 13003 that has been causing sporadic test suite failures since our upgrade to Python 2.6. (I've verified that pkgsend performs as expected with Python 2.4.)

This may mean that we'll have to consider always explicitly calling str() on our exception objects and that our client error handling may now be partially broken for users since the upgrade.

Cheers,
--
Shawn Walker
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to