[MEDIUM] cli.py: unhandled FileNotFoundError/OSError on --diff-file open #6
Labels
No labels
bug
code-review
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
foravo/mesh-review-comment-proof-20260519044241#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from GitHub issue
M00C1FER/mesh-review#7.Source: https://github.com/M00C1FER/mesh-review/issues/7
Original author: @M00C1FER
Original state: closed
Finding 6 — MEDIUM
File:
src/mesh_review/cli.pyFunction:
cmd_summary()Commit fixing this: 834f8d8441226ac383868a9cb8ac5c69b650581e (PR #1)
Description
cmd_summaryopens the user-supplied diff file without any error handling:If the file does not exist or cannot be read (permissions, directory path, binary file), Python raises
FileNotFoundErrororOSErrorwhich propagates as an unhandled exception, producing a Python traceback rather than a clean error message.Impact
Fix Applied
Imported from GitHub issue comment
M00C1FER/mesh-review#7:4362220378.Source: https://github.com/M00C1FER/mesh-review/issues/7#issuecomment-4362220378
Original author: @M00C1FER
Fixed by merged PR #1.