kennethreitz/requests — pull request #774 by Lukasa (2012-08-10 16:49:52+00:00)
Title: Throw clear exceptions

I'm not super invested in this: I think the UnicodeError is reasonably clear, but it probably helps to throw a Requests based exception when there is an error in the URL. The InvalidURL exception subclasses ValueError, which means anyone catching this by looking for ValueErrors will still catch this exception.

That said, you might just want to keep throwing the Unicode Error.

(Inspired by me really wanting to close #697.)