From f1acbd9b84338878df241500d003d17440213370 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 27 Jan 2021 14:41:17 -0500 Subject: [PATCH] Stash the type string from remote errors --- tractor/_exceptions.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tractor/_exceptions.py b/tractor/_exceptions.py index 63e0d09..bebaf66 100644 --- a/tractor/_exceptions.py +++ b/tractor/_exceptions.py @@ -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)