Drop cancel traceback capture; don't seem to need it?

expected_ctx_cancelled
Tyler Goodlet 2021-12-14 23:22:14 -05:00
parent 8c004c1f36
commit 98a830ccba
1 changed files with 3 additions and 5 deletions

View File

@ -185,9 +185,6 @@ async def _invoke(
task_status.started(cs) task_status.started(cs)
await chan.send({'return': await coro, 'cid': cid}) await chan.send({'return': await coro, 'cid': cid})
except trio.Cancelled as err:
tb = err.__traceback__
except trio.MultiError: except trio.MultiError:
# if a context error was set then likely # if a context error was set then likely
# thei multierror was raised due to that # thei multierror was raised due to that
@ -916,8 +913,9 @@ class Actor:
# ``_async_main()`` # ``_async_main()``
kwargs['chan'] = chan kwargs['chan'] = chan
log.cancel( log.cancel(
f"Actor {self.uid} was remotely cancelled;" f'{self.uid} was remotely cancelled by\n'
" waiting on cancellation completion..") f'{chan.uid}!'
)
await _invoke( await _invoke(
self, cid, chan, func, kwargs, is_rpc=False self, cid, chan, func, kwargs, is_rpc=False
) )