summaryrefslogtreecommitdiff
path: root/python/lowlevelil.py
diff options
context:
space:
mode:
authorJosh Ferrell <josh@vector35.com>2026-04-15 11:21:40 -0400
committerJosh Ferrell <josh@vector35.com>2026-04-15 11:21:44 -0400
commitb4ccb82ea76b98457d9dc59424632ca412511ed4 (patch)
tree2eb4d7875181cee7b05413fa6dcdaea3a1d95981 /python/lowlevelil.py
parentc08cf3f1eaa73a5171c27044100479998104d58a (diff)
[Python API] Replace bare "except:" with "except Exception:" to fix signal propagation
Diffstat (limited to 'python/lowlevelil.py')
-rw-r--r--python/lowlevelil.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/python/lowlevelil.py b/python/lowlevelil.py
index 57241a60..714b663d 100644
--- a/python/lowlevelil.py
+++ b/python/lowlevelil.py
@@ -698,7 +698,7 @@ class LowLevelILInstruction(BaseILInstruction):
for hlil_expr in mlil_expr.hlils:
try:
result.add(hlil_expr)
- except:
+ except Exception:
assert False, f"mlil_expr.hlils returned list of lists: {hlil_expr} {type(hlil_expr)}"
return list(result)
@@ -4194,7 +4194,7 @@ class LowLevelILFunction:
The function should have the following signature:
expr_handler(new_func: LowLevelILFunction, old_block: LowLevelILBasicBlock, old_instr: LowLevelILInstruction) -> ExpressionIndex
-
+
Where:
- **new_func** (*LowLevelILFunction*): New function to receive translated instructions
- **old_block** (*LowLevelILBasicBlock*): Original block containing old_instr
@@ -5252,7 +5252,7 @@ class LowLevelILFunction:
def call(self, dest: ExpressionIndex, loc: Optional['ILSourceLocation'] = None) -> ExpressionIndex:
"""
- ``call`` returns an expression which (on architectures without a link register) first pushes the address of the
+ ``call`` returns an expression which (on architectures without a link register) first pushes the address of the
next instruction onto the stack then jumps (branches) to the expression ``dest``
:param ExpressionIndex dest: the expression to call