[PR #80] buffer_bounds_probe: a non-numeric --waves exits 2 instead of a traceback #132

Open
opened 2026-11-26 20:16:53 +01:00 by 4ld0 · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ubiquitarianism/leonida/pull/80
Author: @Andretuta
Created: 11/24/2026
Status: 🔄 Open

Base: main ← Head: old-pr/9807


📝 Commits (1)

  • 5b0cf36 buffer_bounds_probe: a non-numeric --waves is a bad argument (exit 2), not a traceback

📊 Changes

2 files changed (+10 additions, -1 deletions)

View changed files

📝 tests/test_buffer_bounds_probe.py (+6 -0)
📝 tools/buffer_bounds_probe.py (+4 -1)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ubiquitarianism/leonida/pull/80 **Author:** [@Andretuta](https://github.com/Andretuta) **Created:** 11/24/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `old-pr/9807` --- ### 📝 Commits (1) - [`5b0cf36`](https://github.com/ubiquitarianism/leonida/commit/5b0cf3654fbaffe8085c7b000d5ead13f57e493f) buffer_bounds_probe: a non-numeric --waves is a bad argument (exit 2), not a traceback ### 📊 Changes **2 files changed** (+10 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `tests/test_buffer_bounds_probe.py` (+6 -0) 📝 `tools/buffer_bounds_probe.py` (+4 -1) </details> ### 📄 Description > 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. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
starred/leonida#132
No description provided.