diff --git a/nimbus/nimbus.nim b/nimbus/nimbus.nim index 32aed66ce..23e31cd4a 100644 --- a/nimbus/nimbus.nim +++ b/nimbus/nimbus.nim @@ -155,7 +155,12 @@ proc process*(nimbus: NimbusObject) = # Main loop while nimbus.state == Running: - poll() + try: + poll() + except CatchableError: + debug "Exception in poll()", + exc = getCurrentException().name, + err = getCurrentExceptionMsg() # Stop loop waitFor nimbus.stop()