From 075b7abf4c4742d117613b678cd6e5ec58fb18a8 Mon Sep 17 00:00:00 2001 From: Jacek Sieka Date: Thu, 25 Mar 2021 15:53:33 +0100 Subject: [PATCH] fix Defect check in non-strict mode (#170) --- chronos/asyncmacro2.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chronos/asyncmacro2.nim b/chronos/asyncmacro2.nim index 75cf1bf7..7f6ca467 100644 --- a/chronos/asyncmacro2.nim +++ b/chronos/asyncmacro2.nim @@ -92,7 +92,7 @@ else: retFutureSym.fail(exc) except Exception as exc: # TODO remove Exception handler to turn on strict mode - if exc is Defect: + if exc of Defect: raise (ref Defect)(exc) futureVarCompletions