fix flatpak kindlegen detection (7.5.0 regression) (#1000)

* fix flatpak kindlegen detection

* fix shared
This commit is contained in:
Alex Xu authored and GitHub committed 2025-06-29 09:28:47 -07:00
1 parent c7ebb230c2
commit 6299c45790
3 files changed
+4 -5

No files matched your search

+1 -1
View File
@@ -1238,7 +1238,7 @@ def checkTools(source):
if options.format == 'MOBI':
try:
subprocess_run(['kindlegen', '-locale', 'en'], stdout=PIPE, stderr=STDOUT, check=True)
except FileNotFoundError:
except (FileNotFoundError, CalledProcessError):
print('ERROR: KindleGen is missing!')
sys.exit(1)