Describe the issue
In pyproject.toml, there is a TODO section where several Ruff linter rules are ignored, including:
BLE001 (blind exceptions)
S108 (hardcoded temporary file usage)
FAST003 (unused FastAPI path parameters)
Currently, there are 11 instances of except Exception: across the codebase. Catching broad exceptions is generally considered an anti-pattern because it can mask unexpected bugs and make debugging more difficult.
These occurrences should be replaced with more specific exception handling where appropriate (for example, OSError, ValueError, or HTTPException). Once addressed, the corresponding stale ignore rules can be removed from pyproject.toml.
I'd love to work on this issue and submit a PR. Could you assign it to me?
Describe the issue
In
pyproject.toml, there is aTODOsection where several Ruff linter rules are ignored, including:BLE001(blind exceptions)S108(hardcoded temporary file usage)FAST003(unused FastAPI path parameters)Currently, there are 11 instances of
except Exception:across the codebase. Catching broad exceptions is generally considered an anti-pattern because it can mask unexpected bugs and make debugging more difficult.These occurrences should be replaced with more specific exception handling where appropriate (for example,
OSError,ValueError, orHTTPException). Once addressed, the corresponding stale ignore rules can be removed frompyproject.toml.I'd love to work on this issue and submit a PR. Could you assign it to me?