From fbf8e4c35c292620f8d25096b4341c3b5caa90ee Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Tue, 27 Aug 2024 09:20:18 +0200 Subject: [gdb/python] Use GDB_PY_SET_HANDLE_EXCEPTION more often I found a few more places where we can use GDB_PY_SET_HANDLE_EXCEPTION. Tested on x86_64-linux. Approved-By: Tom Tromey --- gdb/python/py-param.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gdb/python/py-param.c') diff --git a/gdb/python/py-param.c b/gdb/python/py-param.c index 621f85d..e7032f7 100644 --- a/gdb/python/py-param.c +++ b/gdb/python/py-param.c @@ -885,8 +885,7 @@ parmpy_init (PyObject *self, PyObject *args, PyObject *kwds) catch (const gdb_exception &except) { Py_DECREF (self); - gdbpy_convert_exception (except); - return -1; + GDB_PY_SET_HANDLE_EXCEPTION (except); } return 0; -- cgit v1.1