From d4a7ed9b8fce07ce7206d4ab48b0b333ae69d47a Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Tue, 18 Nov 2025 20:52:11 -0500 Subject: Fix some python API error messages --- python/function.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/function.py') 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) -- cgit v1.3.1