Issue #22 wontfix

Requirement.parse should raise custom exception

Sridhar Ratnakumar
created an issue

try:

{{{

!python

Requirement.parse('foo!') [...] ValueError: ('Expected version spec in', 'foo!', 'at', '!') }}}

This is API-unfriendly. Perhaps make it raise 'InvalidRequirementString' that is a sub-class of ValueError (so the change most likely remains backward compatable)

Comments (3)

  1. Log in to comment