Skip to content

Commit 2d9f4ba

Browse files
Also handle .jar archives which don't have a type
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent 200fb10 commit 2d9f4ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/summarycode/todo.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,8 @@ def get_package_identifier(package_data, file_path):
213213

214214

215215
def get_unknown_purl(package_type):
216+
if not package_type:
217+
package_type = "unknown"
216218
purl = PackageURL(type=package_type, name="unknown")
217219
return purl.to_string()
218220

0 commit comments

Comments
 (0)