From 93daf173244e44744f1e48982f5936beb296ae0b Mon Sep 17 00:00:00 2001 From: mathieui Date: Sun, 11 Apr 2021 14:03:06 +0200 Subject: fix: logger: handle empty log files as well --- poezio/logger.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/poezio/logger.py b/poezio/logger.py index d30a78a3..e13db524 100644 --- a/poezio/logger.py +++ b/poezio/logger.py @@ -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 -- cgit v1.2.3