Stash the type string from remote errors
parent
4a4a786763
commit
f1acbd9b84
|
@ -17,6 +17,8 @@ class RemoteActorError(Exception):
|
||||||
"Remote actor exception bundled locally"
|
"Remote actor exception bundled locally"
|
||||||
def __init__(self, message, type_str, **msgdata) -> None:
|
def __init__(self, message, type_str, **msgdata) -> None:
|
||||||
super().__init__(message)
|
super().__init__(message)
|
||||||
|
self.type_str = type_str
|
||||||
|
|
||||||
for ns in [builtins, _this_mod, trio]:
|
for ns in [builtins, _this_mod, trio]:
|
||||||
try:
|
try:
|
||||||
self.type = getattr(ns, type_str)
|
self.type = getattr(ns, type_str)
|
||||||
|
|
Loading…
Reference in New Issue