From acefbe424cf9d1f05f2d93533790c9ac4e034df8 Mon Sep 17 00:00:00 2001 From: Gabriel Cruz Date: Mon, 13 Jul 2026 13:28:57 -0300 Subject: [PATCH] fix: catch general exception --- libplum/plum.nim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libplum/plum.nim b/libplum/plum.nim index 2abc1b5..8b04450 100644 --- a/libplum/plum.nim +++ b/libplum/plum.nim @@ -243,10 +243,10 @@ proc createMapping*( try: # Wait for the signal's single fire (in mappingCallback) completed = await withTimeout(signal.wait(), timeout) - except CancelledError: + except CancelledError as e: # The signal was cancelled so it is safe to destroy and reclaim. await destroyAndReclaim(id, signal) - raise + raise e if not completed: # The signal was not fired so it is safe to destroy and reclaim.