From 15c635b873105eda2861430d062ea3f6bdfe9d9b Mon Sep 17 00:00:00 2001 From: Rusty Wagner Date: Fri, 1 Aug 2025 17:02:14 -0400 Subject: 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 --- python/update.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'python/update.py') diff --git a/python/update.py b/python/update.py index 3bdb677c..308094f7 100644 --- a/python/update.py +++ b/python/update.py @@ -25,7 +25,7 @@ import ctypes import binaryninja from . import _binaryninjacore as core from .enums import UpdateResult -from .log import log_error +from .log import log_error_for_exception class _UpdateChannelMetaClass(type): @@ -78,7 +78,7 @@ class UpdateProgressCallback: return self.func(progress, total) return True except: - log_error(traceback.format_exc()) + log_error_for_exception("Unhandled Python exception in update progress callback") @property def active(cls): -- cgit v1.3.1