- commit
- a9e74fc024efe88b4654df94fc047595fa41d273
- parent
- ae2f719693034e55243e7e4929b1bd1eb92b99c9
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2021-07-04 12:59
fix lineno in TemplateError
Diffstat
| M | stache.py | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/stache.py b/stache.py
@@ -25,7 +25,7 @@ class Node: 25 25 class TemplateError(Exception): 26 26 def __str__(self): 27 27 node = self.args[0]28 -1 return f'"{node.token}" in {node.file}:{node.line}'-1 28 return f'"{node.token}" in {node.file}:{node.lineno}' 29 29 30 30 31 31 def tokenize(s: str, path: str) -> Iterable[Node]: