diff --git a/core/logic/smn_functions.cpp b/core/logic/smn_functions.cpp index 4e65fc9d..c8a03eaa 100644 --- a/core/logic/smn_functions.cpp +++ b/core/logic/smn_functions.cpp @@ -558,12 +558,12 @@ static cell_t sm_CallFinish(IPluginContext *pContext, const cell_t *params) auto local_args = sArgs; - // Note: Execute() swallows exceptions, so this is okay. + // Note: ExceptionHandler and Execute() swallow exceptions, so this is okay. if (s_pFunction) { IPluginFunction *pFunction = s_pFunction; ResetCall(); - DetectExceptions eh(pContext); + ExceptionHandler eh(pContext); if (!pFunction->Invoke(local_args, result)) return eh.Code(); } else {