Skip to content

Commit

Permalink
chore(lint): fix ruff issues
Browse files Browse the repository at this point in the history
  • Loading branch information
lengau committed Sep 29, 2023
1 parent 34c11fa commit 5d9db17
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions craft_cli/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ def _get_traceback_lines(exc: BaseException) -> Generator[str, None, None]:
"""Get the traceback lines (if any) from an exception."""
tback_lines = traceback.format_exception(type(exc), exc, exc.__traceback__)
for tback_line in tback_lines:
for real_line in tback_line.rstrip().split("\n"):
yield real_line
yield from tback_line.rstrip().split("\n")


class _Progresser:
Expand Down

0 comments on commit 5d9db17

Please sign in to comment.