mirror of
https://github.com/boostorg/python.git
synced 2026-01-30 20:12:37 +00:00
Expend less energy on fancy error messages for internal errors which might as
well be asserts() because they can never happen. [SVN r8263]
This commit is contained in:
@@ -101,7 +101,7 @@ namespace {
|
||||
|
||||
Ptr state(PyObject_GetAttrString(instance, "__dict__"), Ptr::null_ok);
|
||||
PyErr_Clear();
|
||||
if (state.get() != 0)
|
||||
if (state.get() != 0 && Dict(state).size() > 0)
|
||||
{
|
||||
return Tuple(instance_class, initargs, state);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user