Skip to content

Commit

Permalink
Update docstring on get_stack_trace
Browse files Browse the repository at this point in the history
  • Loading branch information
jmpettit committed Mar 21, 2024
1 parent 201e684 commit 6fcd84c
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 @@ -35,6 +35,6 @@ def import_string(dotted_path):


def get_stack_trace(exc: Exception) -> str:
"""Generate and format a stack trace string for a given Jinja exception."""
"""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)

0 comments on commit 6fcd84c

Please sign in to comment.