aboutsummaryrefslogtreecommitdiffstats
path: root/sources/shiboken6/libshiboken/signature/signature_extend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sources/shiboken6/libshiboken/signature/signature_extend.cpp')
-rw-r--r--sources/shiboken6/libshiboken/signature/signature_extend.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/sources/shiboken6/libshiboken/signature/signature_extend.cpp b/sources/shiboken6/libshiboken/signature/signature_extend.cpp
index 4b67d778f..c7aedef08 100644
--- a/sources/shiboken6/libshiboken/signature/signature_extend.cpp
+++ b/sources/shiboken6/libshiboken/signature/signature_extend.cpp
@@ -173,10 +173,8 @@ static PyObject *handle_doc(PyObject *ob, PyObject *old_descr)
pyside_globals->make_helptext_func,
"(O)", ob);
handle_doc_in_progress--;
- if (res == nullptr) {
- PyErr_Print();
- Py_FatalError("handle_doc did not receive a result");
- }
+ if (res == nullptr)
+ PyErr_Format(PyExc_AttributeError, "%R object has no `__doc__` attribute", ob);
return res;
}