ignore utf-8 decoding errors

This commit is contained in:
Alex Xu committed 2025-05-25 13:30:04 -07:00
1 parent be07e0df6a
commit 7b8858678f
2 files changed
+2 -2

No files matched your search

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