diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-08-30 18:46:46 +0200 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-08-30 18:46:46 +0200 |
| commit | 18fc739aa2f7721324748929d721219401b8f46f (patch) | |
| tree | 59a812983d82e6a64d75b47f752347a7d4da8833 /wrappers/python/src | |
| parent | 03f0fc68168de8db1735cc7d1c4d328c4bdd03f2 (diff) | |
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
Diffstat (limited to 'wrappers/python/src')
| -rw-r--r-- | wrappers/python/src/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
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]: |
