Skip to content

Commit cb4354a

Browse files
committed
Handle erlang.ProcessError in _run_and_send
1 parent 4661e8d commit cb4354a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

priv/_erlang_impl/_loop.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1342,16 +1342,16 @@ async def _run_and_send(coro, caller_pid, ref):
13421342
try:
13431343
erlang.send(caller_pid, (async_result, ref, (ok, result)))
13441344
except erlang.ProcessError:
1345-
pass # Caller process gone, nothing to do
1345+
pass # Caller gone, nothing to do
13461346
except asyncio.CancelledError:
13471347
try:
13481348
erlang.send(caller_pid, (async_result, ref, (error, 'cancelled')))
13491349
except erlang.ProcessError:
1350-
pass # Caller process gone, nothing to do
1350+
pass # Caller gone, nothing to do
13511351
except Exception as e:
13521352
import traceback
13531353
tb = traceback.format_exc()
13541354
try:
13551355
erlang.send(caller_pid, (async_result, ref, (error, f'{type(e).__name__}: {e}\n{tb}')))
13561356
except erlang.ProcessError:
1357-
pass # Caller process gone, nothing to do
1357+
pass # Caller gone, nothing to do

0 commit comments

Comments
 (0)