From a003b0303dabbc904b23d668b3068190de0c1ea7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 8 Oct 2024 08:10:18 +0530 Subject: [PATCH] ... --- src/calibre/gui2/tts/piper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/gui2/tts/piper.py b/src/calibre/gui2/tts/piper.py index 1dcbd43c53..09291e8075 100644 --- a/src/calibre/gui2/tts/piper.py +++ b/src/calibre/gui2/tts/piper.py @@ -457,7 +457,7 @@ class Piper(TTSBackend): return model_path, config_path def is_voice_downloaded(self, v: Voice) -> bool: - if not v.name: + if not v or not v.name: v = self._default_voice for path in self._paths_for_voice(v): if not os.path.exists(path):