We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2e74c9 commit 7a170c1Copy full SHA for 7a170c1
Doc/tools/check-epub.py
@@ -3,8 +3,9 @@
3
4
5
def main() -> int:
6
+ wrong_directory_msg = "Must run this script from the repo root"
7
if not Path("Doc").exists() or not Path("Doc").is_dir():
- raise RuntimeError("Must run this script from the repo root")
8
+ raise RuntimeError(wrong_directory_msg)
9
10
with Path("Doc/epubcheck.txt").open(encoding="UTF-8") as f:
11
warnings = [warning.split(" - ") for warning in f.read().splitlines()]
0 commit comments