exception_catcher

It is intended that any functions that interface directly with Python which have the possibility of a D exception being raised wrap their contents in a call to this function, e.g.:

extern (C)
PyObject* some_func(PyObject* self) {
   return _exception_catcher({
       // ...
   });
}

T
exception_catcher
(
T
)
(
T delegate
()
dg
)

Meta