-
Notifications
You must be signed in to change notification settings - Fork 235
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
Comments
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
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.The text was updated successfully, but these errors were encountered: