1. Tarek Ziadé
  2. distribute
  3. Issues
Issue #22 wontfix

Requirement.parse should raise custom exception

Sridhar Ratnakumar
created an issue




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