diff --git a/black.py b/black.py index 4d85865..9ac16c0 100644 --- a/black.py +++ b/black.py @@ -2435,7 +2435,7 @@ def append_to_line(leaf: Leaf) -> Iterator[Line]: nonlocal current_line try: current_line.append_safe(leaf, preformatted=True) - except ValueError as ve: + except ValueError: yield current_line current_line = Line(depth=line.depth, inside_brackets=line.inside_brackets)