mirror of
https://github.com/status-im/nim-chronos.git
synced 2025-02-20 23:18:22 +00:00
fix Defect check in non-strict mode (#170)
This commit is contained in:
parent
c206d2bc19
commit
075b7abf4c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user