Skip to content

Commit a4f3678

Browse files
authored
Wip
Add debug statement
1 parent 44e130d commit a4f3678

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/scancode/cache.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def scan_key(self, path, file_infos):
7777
Return a scan cache key for a path and file_infos.
7878
"""
7979
sha1 = file_infos['sha1']
80+
assert sha1
8081
# we may eventually store directories, in which case we use the path as a key
8182
return sha1 or path
8283

0 commit comments

Comments
 (0)