From 6aab16f877464d7adab54e182145ee6ab056c40a Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Sun, 4 Jul 2021 11:00:08 -0400 Subject: [PATCH] Drop added logging around root cancel --- tractor/_root.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tractor/_root.py b/tractor/_root.py index 63152b0..f5bd778 100644 --- a/tractor/_root.py +++ b/tractor/_root.py @@ -179,11 +179,8 @@ async def open_root_actor( finally: logger.info("Shutting down root actor") - try: - with trio.CancelScope(shield=True): - await actor.cancel() - except Exception as err: - log.warning('Root was already cancelled') + with trio.CancelScope(shield=True): + await actor.cancel() finally: _state._current_actor = None logger.info("Root actor terminated")