Skip to content

Commit

Permalink
Should have been another yield; use splitlines
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc authored Apr 23, 2021
1 parent c532c8d commit a8d0a62
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions flake8_rst_docstrings.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,12 @@ def run(self):
rst_fail_lint,
"Failed to lint docstring: %s - %s" % (node.name, err),
)
self.errors.append((node.body[0].lineno, msg))
yield 0, 0, msg, type(self)
continue

if rst_errors:
start = node.body[0].lineno - len(
ast.get_docstring(node, clean=False).split("\n")
ast.get_docstring(node, clean=False).splitlines()
)

for rst_error in rst_errors:
Expand Down

0 comments on commit a8d0a62

Please sign in to comment.