aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside6
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2025-11-25 11:42:46 +0100
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2025-11-25 17:03:44 +0100
commit4923cd128e9d3ff4e8279dae1382ff000c99bfa5 (patch)
tree01012ed1b68ba48a7b8fc9c9df7c369e365d29a0 /sources/pyside6
parent9086240ff5766b996fd5dd0020698932d38da039 (diff)
libshiboken: Remove PepErr_GetRaisedException()
The function was wrongly implemented, it is actually meant to clear the error state and be used along with PyErr_SetRaisedException() to replace the deprecated PyErr_Fetch()/Restore(). It cannot really be implemented in terms of PyErr_Fetch()/Restore(). Partially reverts 9aabb3a509594f59306a96679938f2f43a9830e6. Task-number: PYSIDE-2747 Change-Id: I5ee57112c905e9112b758e27904bbf4fa768aeea Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/pyside6')
-rw-r--r--sources/pyside6/plugins/designer/designercustomwidgets.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/pyside6/plugins/designer/designercustomwidgets.cpp b/sources/pyside6/plugins/designer/designercustomwidgets.cpp
index d13539859..c43af1f6d 100644
--- a/sources/pyside6/plugins/designer/designercustomwidgets.cpp
+++ b/sources/pyside6/plugins/designer/designercustomwidgets.cpp
@@ -68,7 +68,7 @@ static QString pyErrorMessage()
#else // <3.11
if (PyObject *pvalue = PyErr_GetRaisedException()) {
result = pyStr(pvalue);
- Py_DECREF(pvalue);
+ PyErr_SetRaisedException(pvalue);
}
#endif
return result;