Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log error instead of raising when using get_file #4625

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DinaMeylakh
Copy link
Contributor

@DinaMeylakh DinaMeylakh commented Oct 21, 2024

Related Issues

fixes: https://jira-dc.paloaltonetworks.com/browse/CIAC-11984

Description

When using get_file on a malformed yml file, the error raised contained the tag . logging this error when handling the exception raised another exception since the logger command thought this tag is something the logger should parse. In this pr, I replace the tag with the actual file path before sending it to the logger, making it more readable and less troublesome. I assert no error is raised anymore.

@DinaMeylakh
Copy link
Contributor Author

TDD: failing ut in ecfa300 can be found in this job

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant