Content-Length: 239766 | pFad | http://github.com/astral-sh/ruff/pull/16564

72 Fix `useless-try-except (TRY203)` false negative by harupy · Pull Request #16564 · astral-sh/ruff · GitHub
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

Fix useless-try-except (TRY203) false negative #16564

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

Conversation

harupy
Copy link
Contributor

@harupy harupy commented Mar 8, 2025

Summary

Fix #16561.

Test Plan

New test cases

Copy link
Contributor

github-actions bot commented Mar 8, 2025

ruff-ecosystem results

Linter (stable)

ℹ️ ecosystem check detected linter changes. (+1 -0 violations, +0 -0 fixes in 1 projects; 54 projects unchanged)

mlflow/mlflow (+1 -0 violations, +0 -0 fixes)

+ tests/projects/utils.py:79:9: TRY203 Remove exception handler; error is immediately re-raised

Changes by rule (1 rules affected)

code total + violation - violation + fix - fix
TRY203 1 1 0 0 0

Linter (preview)

ℹ️ ecosystem check detected linter changes. (+1 -0 violations, +0 -0 fixes in 1 projects; 54 projects unchanged)

mlflow/mlflow (+1 -0 violations, +0 -0 fixes)

ruff check --no-cache --exit-zero --ignore RUF9 --no-fix --output-format concise --preview

+ tests/projects/utils.py:79:9: TRY203 Remove exception handler; error is immediately re-raised

Changes by rule (1 rules affected)

code total + violation - violation + fix - fix
TRY203 1 1 0 0 0

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.

useless-try-except (TRY203) false negative?
1 participant








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/astral-sh/ruff/pull/16564

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy