See: https://forum.nim-lang.org/t/9774
|
{.push raises: [AssertionDefect].} # Ensure no exceptions can happen |
The precondition can in fact raise AssertionDefect https://github.com/status-im/nim-taskpools/blob/89d693d/taskpools/instrumentation/contracts.nim#L91 unless when code is compiled without assertions (danger for example).
An easy fix would be to push that hint off