From da192501d17cbc18f7acec5386f3be8cc64c03ca Mon Sep 17 00:00:00 2001 From: Mikusch <25514044+Mikusch@users.noreply.github.com> Date: Tue, 14 Jul 2026 13:55:48 +0200 Subject: [PATCH] Fix Call_Finish propagating exceptions to the caller (#2510) --- core/logic/smn_functions.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {