Skip to content

Commit 9ae0755

Browse files
committed
Bug fix
Signed-off-by: Prabhu Subramanian <prabhu@appthreat.com>
1 parent 6af3f56 commit 9ae0755

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "appthreat-vulnerability-db"
3-
version = "6.1.1"
3+
version = "6.1.2"
44
description = "AppThreat's vulnerability database and package search library with a built-in sqlite based storage. OSV, CVE, GitHub, npm are the primary sources of vulnerabilities."
55
authors = [
66
{name = "Team AppThreat", email = "cloud@appthreat.com"},

vdb/lib/search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def search_by_purl_like(purl: str, with_data: bool = False) -> List:
114114
if namespace:
115115
purl_prefix = f"{purl_prefix}{namespace}/"
116116
# Handle distro names for linux os purls by prefixing distro name to name
117-
if purl_obj["qualifiers"] and purl_obj["qualifiers"].get("distro_name"):
117+
if purl_obj.get("qualifiers") and purl_obj["qualifiers"].get("distro_name"):
118118
distro_name = purl_obj["qualifiers"].get("distro_name")
119119
name = f"{distro_name}/{name}"
120120
purl_prefix = f"{purl_prefix}{name}"

0 commit comments

Comments
 (0)