mirror of
https://github.com/ubiquitarianism/leonida.git
synced 2026-11-26 22:30:53 +01:00
[PR #301] [CLOSED] wave32_pixel_scan: use shared same_report_path and catch --out write OSError #353
Labels
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
starred/leonida#353
Loading…
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?
📋 Pull Request Information
Original PR: https://github.com/ubiquitarianism/leonida/pull/301
Author: @Andretuta
Created: 11/24/2026
Status: ❌ Closed
Base:
main← Head:old-pr/10033📝 Commits (1)
3ca5be8wave32_pixel_scan: use shared same_report_path and catch --out write OSError📊 Changes
2 files changed (+61 additions, -3 deletions)
View changed files
📝
tests/test_wave32_pixel_scan.py(+53 -0)📝
tools/wave32_pixel_scan.py(+8 -3)📄 Description
Original description (mentions and
#Nreferences are disabled; the numbers refer to the old repository):Claimed in the coordination issue as: https://github.com/ProjectLeonida/Leonida/issues/9677#issuecomment-7117069018
What and why
tools/wave32_pixel_scan.pychecked--outagainst scanned listings with a privateos.path.exists(args.out) and any(os.path.samefile(args.out, p) ...)check instead oftools/report_paths.same_report_path(CONTRIBUTING.md), and wroteargs.outinmain()without catchingOSError(unlike sibling tooltools/image_bvh_census.py), so an output write failure raised an uncaught traceback instead of printing an error line tostderrand returning exit code 2.report_paths.same_report_path(args.out, p)to guard scanned listings.OSErrorwhen writingargs.out, printERROR: cannot write <path>: <reason>tostderr, and return2.tests/test_wave32_pixel_scan.pycoveringsame_report_pathdelegation and--outwriteOSErrorhandling.Tested
python -I tests/test_wave32_pixel_scan.py -v: 15/15 passed (OK)python -m compileall -q tools/wave32_pixel_scan.py tests/test_wave32_pixel_scan.py: exit 0python -I scripts/check_no_game_data.py tools/wave32_pixel_scan.py tests/test_wave32_pixel_scan.py: exit 0AI-assisted: yes
Checklist
docs/design.md, with how it was confirmed.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.