[proving] Do not log error when cancelling

This commit is contained in:
Mark Spanbroek 2022-05-18 12:59:23 +02:00 committed by markspanbroek
parent cdcab43590
commit d8ef633fb0
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,8 @@ proc run(proving: Proving) {.async.} =
if callback =? proving.onProofRequired:
callback(id)
await proving.waitUntilPeriod(currentPeriod + 1)
except CancelledError:
discard
except CatchableError as e:
error "Proving failed", msg = e.msg