Skip to content

Commit

Permalink
Update msg
Browse files Browse the repository at this point in the history
  • Loading branch information
carl-baillargeon committed Feb 8, 2024
1 parent d2f3cb6 commit 359bec3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@
except TypeError as e:
# Known bug with Python 3.9.7 and Pydantic `conint`, impacting ANTA. Issue: https://github.com/arista-netdevops-community/anta/issues/557
if "Interval() takes no arguments" in str(e):
msg = "Encountered a known bug with Pydantic and Python 3.9.7. Please consider upgrading Python or using a different environment."
msg = (
"The ANTA testing framework, used in the AVD eos_validate_state role, has encountered a compatibility issue with Python 3.9.x. "
"Please try a different Python version. For assistance or to report your Python version, please refer to the AVD/ANTA GitHub repositories:\n"
"https://github.com/aristanetworks/avd/\nhttps://github.com/arista-netdevops-community/anta"
)
raise AristaAvdError(msg) from e
else:
# If the TypeError is not related to the known bug, raise it to avoid silencing other issues
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# cprofile_file: "anta-{{inventory_hostname}}.prof"
register: anta_results
check_mode: false
when: use_anta | bool
tags: always

#######################################
Expand All @@ -36,7 +35,6 @@
run_once: true
check_mode: false
when:
- use_anta | bool
- validation_report_csv | bool or validation_report_md | bool
tags:
- always
Expand Down

0 comments on commit 359bec3

Please sign in to comment.