Skip to content

Commit bf95d7d

Browse files
committed
--bom search was not working
Signed-off-by: Prabhu Subramanian <[email protected]>
1 parent 7d1b603 commit bf95d7d

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-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.2.0"
3+
version = "6.2.1"
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 = "[email protected]"},

vdb/cli.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,10 @@ def print_results(results):
199199
for result_gen in results:
200200
if isinstance(result_gen, dict):
201201
add_table_row(table, result_gen, added_row_keys)
202-
if isinstance(result_gen, types.GeneratorType):
202+
elif isinstance(result_gen, list):
203+
for res in result_gen:
204+
add_table_row(table, res, added_row_keys)
205+
elif isinstance(result_gen, types.GeneratorType):
203206
for res in result_gen:
204207
add_table_row(table, res, added_row_keys)
205208
elif isinstance(results, list):

0 commit comments

Comments
 (0)