| 142 | } |
| 143 | |
| 144 | void Exception::setPyException() const |
| 145 | { |
| 146 | PyObject* exc = getPyExceptionType(); |
| 147 | if (!exc) { |
| 148 | exc = PyExc_FC_GeneralError; |
| 149 | } |
| 150 | |
| 151 | PyErr_SetString(exc, what()); |
| 152 | } |
| 153 | |
| 154 | // --------------------------------------------------------- |
| 155 |
no test coverage detected