From 9e814660c27f530358bca46fb9624a16bae971d8 Mon Sep 17 00:00:00 2001 From: Avery Date: Sat, 4 Jan 2025 22:20:57 -0600 Subject: [PATCH] Don't show size mismatch warnings for zero-size files --- whipper/program/cdparanoia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/whipper/program/cdparanoia.py b/whipper/program/cdparanoia.py index 78c7173d..570c2d6e 100644 --- a/whipper/program/cdparanoia.py +++ b/whipper/program/cdparanoia.py @@ -380,7 +380,7 @@ def _done(self): "File is empty, " "expected size %d" % ( expected ))) - if size != expected: + elif size != expected: # FIXME: handle errors better logger.warning('file size %d did not match expected size %d', size, expected)