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

[CCXDEV-11808] Remove all the f-strings from the exceptions #126

Merged
merged 3 commits into from
Dec 5, 2023

Conversation

juandspy
Copy link
Collaborator

@juandspy juandspy commented Dec 5, 2023

Description

Using f-strings in Exceptions is an anti pattern - see https://docs.astral.sh/ruff/rules/f-string-in-exception/ for example. This is creating a lot of duplication in Glitchtip making it impossible to integrate it with Jira. It will basically DDOS our Jira board.

In this PR I remove all the f-strings from the exceptions. I left the Exceptions in parse_human_filesize as the arguments there are not dynamically generated, but it could be dropped too.

Part of CCXDEV-11808

Type of change

  • Bug fix (non-breaking change which fixes an issue)

Testing steps

CI.

Checklist

  • make before_commit passes
  • updated documentation wherever necessary
  • added or modified tests if necessary
  • updated schemas and validators in insights-data-schemas in case of input/output change

@juandspy juandspy changed the title [CCXDEV-11808] [CCXDEV-11808] Remove all the f-strings from the exceptions Dec 5, 2023
Copy link
Collaborator

@tisnik tisnik left a comment

Choose a reason for hiding this comment

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

ok

@juandspy juandspy merged commit 1b0d813 into RedHatInsights:main Dec 5, 2023
6 checks passed
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.

3 participants