Skip to content

Commit 1e6b344

Browse files
authored
Fix error message line number (#33)
1 parent 3378157 commit 1e6b344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sphinxext/rediraffe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def create_graph(path: Path) -> Dict[str, str]:
5050
graph_edges = {}
5151
broken = False
5252
with open(path, "r") as file:
53-
for line_num, line in enumerate(file):
53+
for line_num, line in enumerate(file, start=1):
5454
line = line.strip()
5555
if len(line) == 0 or line.startswith("#"):
5656
continue

0 commit comments

Comments
 (0)