[gdb/python] Use GDB_PY_HANDLE_EXCEPTION more often

I found a few more places where we can use GDB_PY_HANDLE_EXCEPTION.

Tested on x86_64-linux.

Approved-By: Tom Tromey <tom@tromey.com>
This commit is contained in:
Tom de Vries
2024-08-27 09:20:18 +02:00
parent b5070480d7
commit 2f8cd40c37
12 changed files with 14 additions and 29 deletions

View File

@@ -2056,8 +2056,7 @@ convert_value_from_python (PyObject *obj)
}
catch (const gdb_exception &except)
{
gdbpy_convert_exception (except);
return NULL;
GDB_PY_HANDLE_EXCEPTION (except);
}
return value;