summaryrefslogtreecommitdiff
path: root/python/functionrecognizer.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/functionrecognizer.py
parentc08cf3f1eaa73a5171c27044100479998104d58a (diff)
[Python API] Replace bare "except:" with "except Exception:" to fix signal propagation
Diffstat (limited to 'python/functionrecognizer.py')
-rw-r--r--python/functionrecognizer.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/functionrecognizer.py b/python/functionrecognizer.py
index edebb10e..80f1a11e 100644
--- a/python/functionrecognizer.py
+++ b/python/functionrecognizer.py
@@ -59,7 +59,7 @@ class FunctionRecognizer:
func = function.Function(view, handle=core.BNNewFunctionReference(func))
il = lowlevelil.LowLevelILFunction(func.arch, handle=core.BNNewLowLevelILFunctionReference(il))
return self.recognize_low_level_il(view, func, il)
- except:
+ except Exception:
log_error_for_exception("Unhandled Python exception in FunctionRecognizer._recognize_low_level_il")
return False
@@ -73,7 +73,7 @@ class FunctionRecognizer:
func = function.Function(view, handle=core.BNNewFunctionReference(func))
il = mediumlevelil.MediumLevelILFunction(func.arch, handle=core.BNNewMediumLevelILFunctionReference(il))
return self.recognize_medium_level_il(view, func, il)
- except:
+ except Exception:
log_error_for_exception("Unhandled Python exception in FunctionRecognizer._recognize_mediumlevel_il")
return False