Skip to content

Commit 63f5873

Browse files
committed
Don't raise exception if package does not have vendor/name
Signed-off-by: Tushar Goel <[email protected]>
1 parent 6e974c8 commit 63f5873

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

vulnerabilities/package_managers.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -395,9 +395,6 @@ class ComposerVersionAPI(VersionAPI):
395395
package_type = "composer"
396396

397397
def fetch(self, pkg: str) -> Iterable[PackageVersion]:
398-
if "/" not in pkg:
399-
raise Exception(f"Composer package: {pkg!r} does not have a vendor/name structure.")
400-
401398
response = get_response(url=f"https://repo.packagist.org/p/{pkg}.json")
402399
if response:
403400
yield from self.extract_versions(response, pkg)

0 commit comments

Comments
 (0)