From 6fcd84c78d7e88e77c72128d95ed8d0cd357ebcd Mon Sep 17 00:00:00 2001 From: Justin Pettit <47164813+jmpettit@users.noreply.github.com> Date: Thu, 21 Mar 2024 10:07:06 -0500 Subject: [PATCH] Update docstring on get_stack_trace --- nornir_nautobot/utils/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nornir_nautobot/utils/helpers.py b/nornir_nautobot/utils/helpers.py index 168a964..5954456 100644 --- a/nornir_nautobot/utils/helpers.py +++ b/nornir_nautobot/utils/helpers.py @@ -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)