Toss in masked `.set_trace()` for unshielded `.pause()` debug
parent
f7ca31c0e4
commit
d2ad58d5d6
|
@ -561,6 +561,9 @@ async def _pause(
|
||||||
return
|
return
|
||||||
|
|
||||||
elif isinstance(pause_err, trio.Cancelled):
|
elif isinstance(pause_err, trio.Cancelled):
|
||||||
|
__tracebackhide__: bool = False
|
||||||
|
# XXX, unmask to REPL it.
|
||||||
|
# mk_pdb().set_trace(frame=inspect.currentframe())
|
||||||
_repl_fail_report += (
|
_repl_fail_report += (
|
||||||
'You called `tractor.pause()` from an already cancelled scope!\n\n'
|
'You called `tractor.pause()` from an already cancelled scope!\n\n'
|
||||||
'Consider `await tractor.pause(shield=True)` to make it work B)\n'
|
'Consider `await tractor.pause(shield=True)` to make it work B)\n'
|
||||||
|
|
Loading…
Reference in New Issue