diff options
| author | Josh Ferrell <josh@vector35.com> | 2025-11-18 20:52:11 -0500 |
|---|---|---|
| committer | Josh Ferrell <josh@vector35.com> | 2025-11-19 14:30:27 -0500 |
| commit | d4a7ed9b8fce07ce7206d4ab48b0b333ae69d47a (patch) | |
| tree | 55c85391f10b99f5544859f3ec773feb6c0c684d /python/function.py | |
| parent | 50f3a4df7ff602a99574c78907ebeec8e0849f46 (diff) | |
Fix some python API error messages
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/function.py b/python/function.py index 2d52c505..7d67d51d 100644 --- a/python/function.py +++ b/python/function.py @@ -280,7 +280,7 @@ class BasicBlockList: elif isinstance(i, slice): result = [] if i.start < 0 or i.start >= len(self) or i.stop < 0 or i.stop >= len(self): - raise IndexError(f"Slice {i} out of bounds for FunctionList of size {len(self)}") + raise IndexError(f"Slice {i} out of bounds for BasicBlockList of size {len(self)}") for j in range(i.start, i.stop, i.step if i.step is not None else 1): block = core.BNNewBasicBlockReference(self._blocks[j]) @@ -401,7 +401,7 @@ class TagList: elif isinstance(i, slice): result = [] if i.start < 0 or i.start >= len(self) or i.stop < 0 or i.stop >= len(self): - raise IndexError(f"Slice {i} out of bounds for FunctionList of size {len(self)}") + raise IndexError(f"Slice {i} out of bounds for TagList of size {len(self)}") for j in range(i.start, i.stop, i.step if i.step is not None else 1): core_tag = core.BNNewTagReference(self._tags[j].tag) |
