| 496 | } |
| 497 | |
| 498 | inline bool raise_err(PyObject *exc_type, const char *msg) { |
| 499 | if (PyErr_Occurred()) { |
| 500 | raise_from(exc_type, msg); |
| 501 | return true; |
| 502 | } |
| 503 | set_error(exc_type, msg); |
| 504 | return false; |
| 505 | } |
| 506 | |
| 507 | inline void translate_exception(std::exception_ptr p) { |
| 508 | if (!p) { |
no test coverage detected