buffer_bounds_probe: a non-numeric --waves exits 2 instead of a traceback #80

Open
github-bot wants to merge 1 commit from github-bot/gh-80 into main AGit
Owner

@⁠Andretuta on GitHub · 2026-11-24 02:14 UTC · original
ubiquitarianism:old-pr/9807 → main · +10 −1 · 2 files · 1 commits · draft

Carried over from old PR 9807 by nino-exe in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch old-pr/9807, exactly that PR's last commit. All carried-over PRs are listed in #17.
Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it.
nino-exe: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one.


Original description (mentions and #N references are disabled; the numbers refer to the old repository):

A non-numeric --waves (e.g. --waves abc) raised an uncaught ValueError: a traceback and exit 1, where the docstring says bad arguments exit 2. The parse now falls through to the existing check that returns 2. Test: test_waves_that_are_not_numbers (fails on main, passes with the change); tests/test_buffer_bounds_probe.py 6 OK on Windows 11 / Python 3.13. No game files. No other PR touches this file.

**@⁠Andretuta** on GitHub · 2026-11-24 02:14 UTC · [original](https://github.com/ubiquitarianism/leonida/pull/80) `ubiquitarianism:old-pr/9807` → `main` · +10 −1 · 2 files · 1 commits · draft > Carried over from **old PR 9807** by `nino-exe` in the original Leonida repository, which went private on 23 Nov 2026. The code is the branch `old-pr/9807`, exactly that PR's last commit. All carried-over PRs are listed in #17. > Opened as a draft, and the CI runs the opening started were cancelled so 250 PRs don't fill the queue. Re-run CI here when you review it. > `nino-exe`: this is your work. Feel free to take it over, by pushing to the branch or opening your own PR and closing this one. --- Original description (mentions and `#N` references are disabled; the numbers refer to the old repository): A non-numeric --waves (e.g. --waves abc) raised an uncaught ValueError: a traceback and exit 1, where the docstring says bad arguments exit 2. The parse now falls through to the existing check that returns 2. Test: test_waves_that_are_not_numbers (fails on main, passes with the change); tests/test_buffer_bounds_probe.py 6 OK on Windows 11 / Python 3.13. No game files. No other PR touches this file.
`--waves abc` (or `--waves 32,x`) raised an uncaught ValueError from int(), so the tool exited 1, which its
docstring defines as "a case disagrees". The existing check right below already prints the usage error and
returns 2 for a bad list; an unparsable list now falls through to it.

Test: test_waves_that_are_not_numbers (fails on main with the traceback, passes with the change).
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 08:43:30 +00:00
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/80/head:github-bot/gh-80'
git switch 'github-bot/gh-80'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-80'
git switch 'github-bot/gh-80'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-80'
git switch 'github-bot/gh-80'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-80'
git switch 'main'
git merge --squash 'github-bot/gh-80'
git switch 'main'
git merge --ff-only 'github-bot/gh-80'
git switch 'main'
git merge 'github-bot/gh-80'
git push origin 'main'
This discussion has been locked. Commenting is limited to contributors.
No description provided.