From 855f959768dd50d3b2180135a8049886bd008844 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 23 Jan 2019 20:00:57 -0500 Subject: [PATCH] Don't log traceback on kb interrupt --- tractor/_trionics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tractor/_trionics.py b/tractor/_trionics.py index d9a5ee0..44f8dcd 100644 --- a/tractor/_trionics.py +++ b/tractor/_trionics.py @@ -317,7 +317,7 @@ class ActorNursery: # the `else:` block here might not complete? # For now, shield both. with trio.open_cancel_scope(shield=True): - if etype is trio.Cancelled: + if etype in (trio.Cancelled, KeyboardInterrupt): log.warning( f"Nursery for {current_actor().uid} was " f"cancelled with {etype}")