From 2900ceb0035a8ff8f5fab984a1b520e23b3dc9e4 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 27 Jan 2022 16:43:31 -0500 Subject: [PATCH] Not all objects have a `.__name__` --- tractor/_portal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tractor/_portal.py b/tractor/_portal.py index 5f5b5d0..7f540e9 100644 --- a/tractor/_portal.py +++ b/tractor/_portal.py @@ -82,7 +82,7 @@ class NamespacePath(str): ) -> tuple[str, str]: ref = self.load_ref() - return ref.__module__, ref.__name__ + return ref.__module__, getattr(ref, '__name__', '') @classmethod def from_ref(