We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 001b91c commit 7fd281dCopy full SHA for 7fd281d
1 file changed
scanpipe/pipes/purldb.py
@@ -318,8 +318,12 @@ def get_unique_unresolved_purls(project):
318
319
try:
320
vers = range_class.from_native(extracted_requirement)
321
- except (InvalidVersionRange, InvalidVersion) as exception:
322
- if exception is InvalidVersionRange:
+ except (
+ InvalidVersionRange,
323
+ InvalidVersion,
324
+ NotImplementedError,
325
+ ) as exception:
326
+ if exception in (InvalidVersionRange, NotImplementedError):
327
description = "Version range is invalid or unsupported"
328
else:
329
description = "Extracted requirement is not a valid version"
0 commit comments