summaryrefslogtreecommitdiff
path: root/python/datarender.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/datarender.py')
-rw-r--r--python/datarender.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/datarender.py b/python/datarender.py
index 6b1a2bd8..d516f26e 100644
--- a/python/datarender.py
+++ b/python/datarender.py
@@ -27,7 +27,7 @@ from . import filemetadata
from . import binaryview
from . import function
from . import enums
-from .log import log_error
+from .log import log_error_for_exception
from . import types
from . import highlight
from . import types
@@ -113,7 +113,7 @@ class DataRenderer:
try:
self.perform_free_object(ctxt)
except:
- log_error(traceback.format_exc())
+ log_error_for_exception("Unhandled Python exception in DataRenderer._free_object")
def _is_valid_for_data(self, ctxt, view, addr, type, context, ctxCount):
try:
@@ -127,7 +127,7 @@ class DataRenderer:
)
return self.perform_is_valid_for_data(ctxt, view, addr, type, pycontext)
except:
- log_error(traceback.format_exc())
+ log_error_for_exception("Unhandled Python exception in DataRenderer._is_valid_for_data")
return False
def _get_lines_for_data(self, ctxt, view, addr, type, prefix, prefixCount, width, count, typeCtx, ctxCount, language):
@@ -175,7 +175,7 @@ class DataRenderer:
return ctypes.cast(self.line_buf, ctypes.c_void_p).value
except:
- log_error(traceback.format_exc())
+ log_error_for_exception("Unhandled Python exception in DataRenderer._get_lines_for_data")
return None
def _free_lines(self, ctxt, lines, count):