Skip to content

Commit 5c4fa2a

Browse files
committed
Fix URL construction
Signed-off-by: Tushar Goel <[email protected]>
1 parent cd713f3 commit 5c4fa2a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fetchcode/pypi.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ def get_download_url(cls, purl):
4242
if not name or not version:
4343
raise ValueError("Pypi PURL must specify a name and version")
4444

45-
url = urljoin(cls.base_url, f"{name}/{version}.json")
46-
45+
url = urljoin(cls.base_url, f"{name}/{version}/json")
46+
breakpoint()
4747
data = fetch_json_response(url)
4848

4949
download_urls = data.get("urls", [{}])

0 commit comments

Comments
 (0)