gdb_py_tp_name: remove redundant PyErr_Clear

gdbpy_print_stack() already clears the error indicator.
Thus remove the following call to PyErr_Clear().

Approved-By: Andrew Burgess <aburgess@redhat.com>
This commit is contained in:
Matthieu Longo 2026-06-08 11:27:44 +01:00
parent bccfda8cc9
commit fb7b22bbea

View file

@ -31,7 +31,6 @@ gdb_py_tp_name (PyTypeObject *py_type) noexcept
auto handle_err = [&]() -> std::string
{
gdbpy_print_stack ();
PyErr_Clear ();
return NO_TYPE_NAME;
};