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

Is package_manager.py worth its own exception? #1477

Open
praiskup opened this issue Sep 28, 2024 · 0 comments
Open

Is package_manager.py worth its own exception? #1477

praiskup opened this issue Sep 28, 2024 · 0 comments

Comments

@praiskup
Copy link
Member

We raise Exception and Runtime Exception from package_manager.py file. If this happens, the output of Mock and log files dump the whole stack trace which is probably unnecessary.

praiskup added a commit to praiskup/mock that referenced this issue Sep 28, 2024
The rename of methods makes linter thing these are new issues:

- Ignore the f"" warning, as f-string is not optimal for this use-case.
- Use RuntimeError instead of the generic Exception.  It is still too
  generic and mock prints stack trace if it happens, but
  package_manager.py probably deserves it's own exception (rpm-software-management#1477).
praiskup added a commit to praiskup/mock that referenced this issue Sep 28, 2024
The rename of methods makes linter thing these are new issues:

- Ignore the f"" warning, as f-string is not optimal for this use-case.
- Use RuntimeError instead of the generic Exception.  It is still too
  generic and mock prints stack trace if it happens, but
  package_manager.py probably deserves it's own exception (rpm-software-management#1477).
praiskup added a commit to praiskup/mock that referenced this issue Sep 30, 2024
The rename of methods makes linter thing these are new issues:

- Ignore the f"" warning, as f-string is not optimal for this use-case.
- Use RuntimeError instead of the generic Exception.  It is still too
  generic and mock prints stack trace if it happens, but
  package_manager.py probably deserves it's own exception (rpm-software-management#1477).
praiskup added a commit to praiskup/mock that referenced this issue Sep 30, 2024
The rename of methods makes linter thing these are new issues:

- Ignore the f"" warning, as f-string is not optimal for this use-case.
- Use RuntimeError instead of the generic Exception.  It is still too
  generic and mock prints stack trace if it happens, but
  package_manager.py probably deserves it's own exception (rpm-software-management#1477).
xsuchy pushed a commit that referenced this issue Sep 30, 2024
The rename of methods makes linter thing these are new issues:

- Ignore the f"" warning, as f-string is not optimal for this use-case.
- Use RuntimeError instead of the generic Exception.  It is still too
  generic and mock prints stack trace if it happens, but
  package_manager.py probably deserves it's own exception (#1477).
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

No branches or pull requests

1 participant