Skip to content

Commit

Permalink
Handle none type on exception logging.
Browse files Browse the repository at this point in the history
  • Loading branch information
WillNye committed Nov 24, 2024
1 parent b274b8b commit c8ad81d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iambic/output/filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ def rich_tree_exception(exceptions: ExceptionSummary):
change_tree = account_tree.add(
str(change.change.change_type), expanded=True
)
change_tree.add(change.change.resource_id)
change_tree.add(change.change.resource_type)
change_tree.add(str(change.change.resource_id))
change_tree.add(str(change.change.resource_type))
change_tree.add(str(change.change.change_type.value))
if change.change.diff:
change_tree.add("* " + "\n* ".join(change.change.diff_plus_minus))
change_tree.add("* " + "\n* ".join(str(change.change.diff_plus_minus)))
console = Console(file=StringIO(), force_terminal=True)
console.print(exception_tree)
output = console.file.getvalue()
Expand Down

0 comments on commit c8ad81d

Please sign in to comment.