mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-06-27 17:02:04 +08:00
LogReader: revert broken check
it returns files OR None
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user