TOSQUASH 313ad93: yeah dun use `._message` as tb-str..

actor_cancelled_exc_type
Tyler Goodlet 2025-08-05 01:05:46 -04:00
parent 82b5bd52c8
commit 6344f9cdb7
1 changed files with 20 additions and 17 deletions

View File

@ -639,26 +639,29 @@ class RemoteActorError(Exception):
self.extra_body_fields, self.extra_body_fields,
) )
# ?TODO, ensure the `.message` doesn't show up 2x in
# output ya?
tb_str: str = ( tb_str: str = (
self.tb_str self.tb_str
or #
self._message # ^TODO? what to use instead? if anything?
) # -[ ] ensure the `.message` doesn't show up 2x in output ya?
from tractor.devx import ( # -[ ] ._message isn't really right?
pformat_boxed_tb, # or
) # self._message
body: str = pformat_boxed_tb(
tb_str=tb_str,
fields_str=fields,
field_prefix=' |_',
# ^- is so that it's placed like so,
# just after <Type(
# |___ ..
tb_body_indent=1,
boxer_header=self.relay_uid or '-',
) )
if tb_str:
from tractor.devx import (
pformat_boxed_tb,
)
body: str = pformat_boxed_tb(
tb_str=tb_str,
fields_str=fields,
field_prefix=' |_',
# ^- is so that it's placed like so,
# just after <Type(
# |___ ..
tb_body_indent=1,
boxer_header=self.relay_uid or '-',
)
# !TODO, it'd be nice to import these top level without # !TODO, it'd be nice to import these top level without
# cycles! # cycles!