forked from goodboy/tractor
1
0
Fork 0

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