[issue14778] IrrationalVersionError should include the project name

Christoph Sieghart report at bugs.python.org
Mon May 14 17:52:42 CEST 2012


Christoph Sieghart <sigi at 0x2a.at> added the comment:

I took a look at the code and I don't think that adding an argument to the IrrationalVersionError constructor is the right way to go. 

The exception is raised in places where we don't know for which project we are raising the exception (eg in packaging.version.NormalizedVersion).

Wouldn't it be better to make packaging.pypi.xmlrpc.Client just print the
package name with the exception?

I would be glad to contribute a patch.

----------
nosy: +sigi

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14778>
_______________________________________


More information about the Python-bugs-list mailing list