Skip to content

Commit

Permalink
Drop cancel traceback capture; don't seem to need it?
Browse files Browse the repository at this point in the history
  • Loading branch information
goodboy committed Dec 15, 2021
1 parent fff8081 commit 76ae792
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions tractor/_actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -916,8 +913,9 @@ async def _process_messages(
# ``_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
)
Expand Down

0 comments on commit 76ae792

Please sign in to comment.