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