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 7b41b5e commit 1f58864Copy full SHA for 1f58864
Doc/tools/check-epub.py
@@ -3,9 +3,8 @@
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():
8
- raise RuntimeError(wrong_directory_msg)
+ raise RuntimeError("Must run this script from the repo root")
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