1
0
mirror of https://github.com/ciromattia/kcc synced 2025-12-13 01:36:27 +00:00

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

* fix flatpak kindlegen detection

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

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)