From 4fe82ebdfcca38c9b0dafabeb234eed06da1f1cd Mon Sep 17 00:00:00 2001 From: dk Date: Wed, 31 Jul 2024 11:30:41 +0700 Subject: [PATCH] [syft/server] fix `AttributeError : no attribute __name__` --- packages/syft/src/syft/server/server.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/syft/src/syft/server/server.py b/packages/syft/src/syft/server/server.py index 9284f9fb4c0..b03e755f2b5 100644 --- a/packages/syft/src/syft/server/server.py +++ b/packages/syft/src/syft/server/server.py @@ -785,7 +785,9 @@ def get_guest_client(self, verbose: bool = True) -> SyftClient: def __repr__(self) -> str: service_string = "" if not self.is_subprocess: - services = [service.__name__ for service in self.initialized_services] + services = [ + service.__class__.__name__ for service in self.initialized_services + ] service_string = ", ".join(sorted(services)) service_string = f"\n\nServices:\n{service_string}" return f"{type(self).__name__}: {self.name} - {self.id} - {self.server_type}{service_string}"