throw kindlegen exceptions

This commit is contained in:
Alex Xu committed 2025-05-11 15:11:56 -07:00
1 parent dfc149d893
commit 75f5274449
2 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -878,7 +878,7 @@ class KCCGUI(KCC_ui.Ui_mainWindow):
except Exception:
pass
try:
versionCheck = subprocess_run(['kindlegen', '-locale', 'en'], stdout=PIPE, stderr=STDOUT, encoding='UTF-8')
versionCheck = subprocess_run(['kindlegen', '-locale', 'en'], stdout=PIPE, stderr=STDOUT, encoding='UTF-8', check=True)
self.kindleGen = True
for line in versionCheck.stdout.splitlines():
if 'Amazon kindlegen' in line: