fix: logger: handle empty log files as well

This commit is contained in:
mathieui 2021-04-11 14:03:06 +02:00
parent 18b1d5ae72
commit 93daf17324

View file

@ -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