Skip to content

Commit

Permalink
Fix stack trace formatting in get_stack_trace function
Browse files Browse the repository at this point in the history
  • Loading branch information
jmpettit committed Mar 21, 2024
1 parent 7f62f50 commit 6f215d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nornir_nautobot/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ def import_string(dotted_path):
def get_stack_trace(exc: Exception) -> str:
"""Converts the provided exception's stack trace into a string."""
stack_trace_lines = traceback.format_exception(type(exc), exc, exc.__traceback__)
return "\n".join(stack_trace_lines)
return "".join(stack_trace_lines)

0 comments on commit 6f215d0

Please sign in to comment.