Sridhar Ratnakumar <sridh...@activestate.com> added the comment: On 2010-05-19, at 5:00 AM, Tarek Ziadé wrote:
> I've fixed the problem on distribute side by catching any ValueError returned > by urlparse (from 2.6 or 2.7 point of view). Catching ValueError will catch *every* ValueError raised, rather than only the intended one: ValueError("Invalid IPv6 URL"). Can we have a custom exception for this? Generally, I am curious as to what the convention is in regards to raising standard vs custom exceptions from the standard library. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue8721> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com