| 365 | } |
| 366 | |
| 367 | PYCOM_EXPORT HRESULT PyCom_SetAndLogCOMErrorFromPyException(const char *methodName, REFIID riid /* = IID_NULL */) |
| 368 | { |
| 369 | if (!PyErr_Occurred()) |
| 370 | // No error occurred |
| 371 | return S_OK; |
| 372 | PyCom_LoggerNonServerException(NULL, "Unexpected exception in gateway method '%s'", methodName); |
| 373 | return PyCom_SetCOMErrorFromPyException(riid); |
| 374 | } |
| 375 | |
| 376 | PYCOM_EXPORT HRESULT PyCom_SetAndLogCOMErrorFromPyExceptionEx(PyObject *provider, const char *methodName, REFIID riid /* = IID_NULL */) |
| 377 | { |
no test coverage detected