Skip to content

Commit

Permalink
Try the other two options
Browse files Browse the repository at this point in the history
  • Loading branch information
jdrew82 committed Mar 20, 2024
1 parent 4886760 commit 14d03c2
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 @@ -173,7 +173,7 @@ def generate_config(
)[0].result
except NornirSubTaskError as exc:
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)}`` and ``{str(exc.result.exception.__traceback__.tb_lasti)}``"
error_msg = f"`E1010:` There was a jinja2.exceptions.UndefinedError error: ``{str(exc.result.exception)}`` and ``{str(exc.result.exception.__traceback__.tb_frame)}`` and ``{str(exc.result.exception.__traceback__.tb_lineno)}``"
logger.error(error_msg, extra={"object": obj, "exc_info": True})
raise NornirNautobotException(error_msg)

Expand Down

0 comments on commit 14d03c2

Please sign in to comment.