Skip to content

Commit

Permalink
Fix error message line number (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTripleV authored Oct 13, 2020
1 parent 3378157 commit 1e6b344
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinxext/rediraffe.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def create_graph(path: Path) -> Dict[str, str]:
graph_edges = {}
broken = False
with open(path, "r") as file:
for line_num, line in enumerate(file):
for line_num, line in enumerate(file, start=1):
line = line.strip()
if len(line) == 0 or line.startswith("#"):
continue
Expand Down

0 comments on commit 1e6b344

Please sign in to comment.