Stash the type string from remote errors

actor_state_via_messages
Tyler Goodlet 2021-01-27 14:41:17 -05:00
parent 4a4a786763
commit f1acbd9b84
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@ class RemoteActorError(Exception):
"Remote actor exception bundled locally"
def __init__(self, message, type_str, **msgdata) -> None:
super().__init__(message)
self.type_str = type_str
for ns in [builtins, _this_mod, trio]:
try:
self.type = getattr(ns, type_str)