Skip to content

Commit

Permalink
more testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Justin Pettit committed Mar 20, 2024
1 parent 3cc6945 commit caa2916
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nornir_nautobot/plugins/tasks/dispatcher/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ def generate_config(
jinja_env=jinja_env,
)[0].result
except NornirSubTaskError as exc:
stack_trace = traceback.format_exc()
stack_trace = "".join(traceback.format_exception(type(exc.result.exception), exc.result.exception, exc.result.exception.__traceback__))
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)}``"
Expand Down

0 comments on commit caa2916

Please sign in to comment.