log CatchableError in poll()
This commit is contained in:
parent
aaa73d4888
commit
ef319483be
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue