Skip to content

Commit 7a170c1

Browse files
committed
Revert literal in raised exception
1 parent f2e74c9 commit 7a170c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Doc/tools/check-epub.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33

44

55
def main() -> int:
6+
wrong_directory_msg = "Must run this script from the repo root"
67
if not Path("Doc").exists() or not Path("Doc").is_dir():
7-
raise RuntimeError("Must run this script from the repo root")
8+
raise RuntimeError(wrong_directory_msg)
89

910
with Path("Doc/epubcheck.txt").open(encoding="UTF-8") as f:
1011
warnings = [warning.split(" - ") for warning in f.read().splitlines()]

0 commit comments

Comments
 (0)