Skip to content

Commit e935a35

Browse files
committed
More cleanup
1 parent 649d199 commit e935a35

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

build_ebook.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def build_pdf_book(self, language: str, markdown_filepath: pathlib.Path) -> None
8585
]
8686
)
8787
except (FileNotFoundError, subprocess.CalledProcessError) as error:
88-
log.error(error)
88+
self.log.error(error)
8989
self.log.warning("Please, install 'xelatex'!")
9090

9191
raise RuntimeError from error
@@ -106,7 +106,7 @@ def build_pdf_book(self, language: str, markdown_filepath: pathlib.Path) -> None
106106
]
107107
)
108108
except subprocess.CalledProcessError as error:
109-
log.error(error)
109+
self.log.error(error)
110110
self.log.warning("'pandoc' process failed!")
111111

112112
raise RuntimeError from error
@@ -127,7 +127,7 @@ def build_epub_book(self, language: str, markdown_filepath: pathlib.Path) -> Non
127127
]
128128
)
129129
except subprocess.CalledProcessError as error:
130-
log.error(error)
130+
self.log.error(error)
131131
self.log.warning("'pandoc' process failed!")
132132

133133
raise RuntimeError from error
@@ -238,7 +238,7 @@ def _collect_markdown_files_from_source(
238238
prefix = f"{parent_prefix}{title_tokens[0]}."
239239

240240
if entry.is_dir() is True:
241-
log.detail(f"Processing directory: {entry}")
241+
self.log.detail(f"Processing directory: {entry}")
242242

243243
title = " ".join(title_tokens[1:])
244244

@@ -250,7 +250,7 @@ def _collect_markdown_files_from_source(
250250
prefix, markdown_files
251251
)
252252
else:
253-
log.detail(f"Processing: {entry}")
253+
self.log.detail(f"Processing: {entry}")
254254

255255
title = " ".join(title_tokens[1:])
256256

0 commit comments

Comments
 (0)