From 18fc739aa2f7721324748929d721219401b8f46f Mon Sep 17 00:00:00 2001 From: jwijenbergh Date: Tue, 30 Aug 2022 18:46:46 +0200 Subject: Python: Only show the cause by default for an error We need to wrap the error class in a cool exception class. But for now, this will do to get simple error messages --- wrappers/python/src/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wrappers/python') diff --git a/wrappers/python/src/__init__.py b/wrappers/python/src/__init__.py index bf97bce..5b63651 100644 --- a/wrappers/python/src/__init__.py +++ b/wrappers/python/src/__init__.py @@ -149,7 +149,7 @@ def get_error(ptr: c_void_p) -> str: error = get_ptr_error(ptr) if not error: return "" - return error.traceback + return error.cause def get_data_error(data_error: DataError) -> Tuple[str, str]: -- cgit v1.2.3