Skip to content

Commit

Permalink
LogReader: revert broken check
Browse files Browse the repository at this point in the history
it returns files OR None

old-commit-hash: 68e22fa
  • Loading branch information
sshane committed Jun 14, 2024
1 parent 47d5601 commit 6441564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/lib/logreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def get_invalid_files(files):
def check_source(source: Source, *args) -> LogPaths:
files = source(*args)
assert len(files) > 0, "No files on source"
assert not any(get_invalid_files(files)), f"Invalid files: {files}"
assert next(get_invalid_files(files), False) is False, "Some files are invalid"
return files


Expand Down

0 comments on commit 6441564

Please sign in to comment.