From b4ccb82ea76b98457d9dc59424632ca412511ed4 Mon Sep 17 00:00:00 2001 From: Josh Ferrell Date: Wed, 15 Apr 2026 11:21:40 -0400 Subject: [Python API] Replace bare "except:" with "except Exception:" to fix signal propagation --- python/lowlevelil.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python/lowlevelil.py') 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 -- cgit v1.3.1