- Sources file can contain empty lines
This commit is contained in:
parent
6602d1ecab
commit
c078cfb0a3
@ -112,6 +112,8 @@ def iter_metadata(metadata_path: str) -> Iterator[Tuple[str, str, str]]:
|
||||
"""
|
||||
with open(metadata_path, 'r') as fd:
|
||||
for line in fd:
|
||||
if not line.strip():
|
||||
continue
|
||||
checksum, file_path = extract_checksum_and_file_path(line)
|
||||
checksum_type = detect_checksum_type(checksum)
|
||||
yield file_path, checksum, checksum_type
|
||||
|
Loading…
Reference in New Issue
Block a user