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

repo: Fix logging metadata download errors handling #1993

Merged
merged 1 commit into from
Jan 8, 2025

Conversation

m-blaha
Copy link
Member

@m-blaha m-blaha commented Jan 8, 2025

Previously, if a download error message line contained {},
logger.warning would interpret it as a format string without any
arguments passed, causing the libdnf5::utils::sformat function to crash.
This commit addresses the issue by ensuring error messages are handled
safely.

Fixes: #1919

Previously, if a download error message line contained `{}`,
logger.warning would interpret it as a format string without any
arguments passed, causing the libdnf5::utils::sformat function to crash.
This commit addresses the issue by ensuring error messages are handled
safely.

Fixes: #1919
@ppisar ppisar self-assigned this Jan 8, 2025
Copy link
Contributor

@ppisar ppisar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good.

@ppisar ppisar added this pull request to the merge queue Jan 8, 2025
Merged via the queue into main with commit 525a12a Jan 8, 2025
17 checks passed
@ppisar ppisar deleted the mblaha/repo_download_error branch January 8, 2025 15:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants