summaryrefslogtreecommitdiff
path: root/python/workflow.py
diff options
context:
space:
mode:
authorRusty Wagner <rusty.wagner@gmail.com>2025-08-01 17:02:14 -0400
committerRusty Wagner <rusty.wagner@gmail.com>2025-08-01 20:56:33 -0400
commit15c635b873105eda2861430d062ea3f6bdfe9d9b (patch)
treef5b17f7aa1388660992e233b3711654aad0cfb0c /python/workflow.py
parent24fef31b14b89198185e5edc39ab7e6a7ef2e9ba (diff)
Use log_error_for_exception in the Python API to pass tracebacks in the stack trace associated with log messages, instead of creating large mutli-line messages for every exception
Diffstat (limited to 'python/workflow.py')
-rw-r--r--python/workflow.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/workflow.py b/python/workflow.py
index 6e4c6730..4db530f8 100644
--- a/python/workflow.py
+++ b/python/workflow.py
@@ -27,7 +27,7 @@ from typing import List, Union, Callable, Optional, Any
# Binary Ninja components
import binaryninja
-from .log import log_error
+from .log import log_error_for_exception
from . import _binaryninjacore as core
from .flowgraph import FlowGraph, CoreFlowGraph
@@ -224,7 +224,7 @@ class Activity(object):
if self.action is not None:
self.action(AnalysisContext(ac))
except:
- log_error(traceback.format_exc())
+ log_error_for_exception("Unhandled Python exception in Activity._action")
def __del__(self):
if core is not None: