mirror of
https://github.com/pybind/pybind11.git
synced 2024-11-25 14:45:12 +00:00
This commit is contained in:
parent
087b07c8b7
commit
8adef2c7f6
@ -1870,7 +1870,14 @@ private:
|
||||
#if !defined(NDEBUG)
|
||||
, type(type_id<T>())
|
||||
#endif
|
||||
{ }
|
||||
{
|
||||
// Workaround! See:
|
||||
// https://github.com/pybind/pybind11/issues/2336
|
||||
// https://github.com/pybind/pybind11/pull/2685#issuecomment-731286700
|
||||
if (PyErr_Occurred()) {
|
||||
PyErr_Clear();
|
||||
}
|
||||
}
|
||||
|
||||
public:
|
||||
/// Direct construction with name, default, and description
|
||||
|
Loading…
Reference in New Issue
Block a user