From c857c10424e89d6b83a3c7ff7b3700fca2d036ff Mon Sep 17 00:00:00 2001 From: Vasista Vovveti Date: Tue, 13 Oct 2020 11:04:01 -0500 Subject: [PATCH] Fix error message line number --- sphinxext/rediraffe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinxext/rediraffe.py b/sphinxext/rediraffe.py index 90580e4..e43227d 100644 --- a/sphinxext/rediraffe.py +++ b/sphinxext/rediraffe.py @@ -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