diff --git a/tractor/_context.py b/tractor/_context.py index 0e3ff0c3..9e277a88 100644 --- a/tractor/_context.py +++ b/tractor/_context.py @@ -1011,7 +1011,6 @@ class Context: else: log.cancel( f'Timed out on cancel request of remote task?\n' - f'\n' f'{reminfo}' ) @@ -1492,6 +1491,12 @@ class Context: ): status = 'peer-cancelled' + case ( + Unresolved, + trio.Cancelled(), # any error-type + ) if self.canceller: + status = 'actor-cancelled' + # (remote) error condition case ( Unresolved, @@ -2273,7 +2278,7 @@ async def open_context_from_portal( logmeth = log.exception logmeth( - f'ctx {ctx.side!r}-side exited with {ctx.repr_outcome()}\n' + f'ctx {ctx.side!r}-side exited with {ctx.repr_outcome()!r}\n' ) if debug_mode():