From 6057d5ac455ac963243b75fab84cba9efb19f2a5 Mon Sep 17 00:00:00 2001 From: Eric <5089238+emizzle@users.noreply.github.com> Date: Tue, 11 Mar 2025 17:53:38 +1100 Subject: [PATCH] do not re-raise CancelledError as convertError not used in async procs --- tests/integration/codexprocess.nim | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/integration/codexprocess.nim b/tests/integration/codexprocess.nim index 5045563b..1a41a658 100644 --- a/tests/integration/codexprocess.nim +++ b/tests/integration/codexprocess.nim @@ -33,10 +33,9 @@ proc raiseCodexProcessError( raise newException(CodexProcessError, msg & ": " & parent.msg, parent) template convertError(msg, body: typed) = + # Don't use this in an async proc, unless body does not raise CancelledError try: body - except CancelledError as e: - raise e except CatchableError as parent: raiseCodexProcessError(msg, parent)