fix: logger: handle empty log files as well
This commit is contained in:
parent
18b1d5ae72
commit
93daf17324
1 changed files with 1 additions and 1 deletions
|
@ -387,7 +387,7 @@ def iterate_messages_reverse(filepath: Path) -> Generator[LogDict, None, None]:
|
|||
)
|
||||
if lines:
|
||||
yield lines[0]
|
||||
except OSError:
|
||||
except (OSError, ValueError):
|
||||
pass
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue