Skip to content

Commit c5b07ef

Browse files
committed
Fixed an exeption
1 parent dc9cb8c commit c5b07ef

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

build_ebook_v2.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def build_pdf_book(self, language: str, markdown_filepath: pathlib.Path) -> None
8181
"--version",
8282
]
8383
)
84-
except subprocess.CalledProcessError as error:
84+
except (FileNotFoundError, subprocess.CalledProcessError) as error:
8585
log.error(error)
8686
self.log.warning("Please, install 'xelatex'!")
8787

@@ -105,6 +105,7 @@ def build_pdf_book(self, language: str, markdown_filepath: pathlib.Path) -> None
105105
)
106106
except subprocess.CalledProcessError as error:
107107
log.error(error)
108+
self.log.warning("'pandoc' process failed!")
108109

109110
raise RuntimeError from error
110111

@@ -126,6 +127,7 @@ def build_epub_book(self, language: str, markdown_filepath: pathlib.Path) -> Non
126127
)
127128
except subprocess.CalledProcessError as error:
128129
log.error(error)
130+
self.log.warning("'pandoc' process failed!")
129131

130132
raise RuntimeError from error
131133

0 commit comments

Comments
 (0)