Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Pettit committed Mar 20, 2024
1 parent e485c7e commit 1a310c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nornir_nautobot/plugins/tasks/dispatcher/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,8 +180,8 @@ def generate_config(
stack_trace = "\n".join(stack_trace_lines)
if isinstance(exc.result.exception, jinja2.exceptions.UndefinedError): # pylint: disable=no-else-raise
error_msg = (
f"`E1010:` There was a jinja2.exceptions.UndefinedError error: ``{str(exc.result.exception)}``"
f"```\n{stack_trace}```"
f"`E1010:` There was a jinja2.exceptions.UndefinedError error: ``{str(exc.result.exception)}``\n"
f"```\n{stack_trace}\n```"
)
logger.error(error_msg, extra={"object": obj})
raise NornirNautobotException(error_msg)
Expand Down

0 comments on commit 1a310c3

Please sign in to comment.