Skip to content

Commit

Permalink
[syft/server] fix AttributeError : no attribute __name__
Browse files Browse the repository at this point in the history
  • Loading branch information
khoaguin committed Jul 31, 2024
1 parent 20e6c5f commit 4fe82eb
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/syft/src/syft/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit 4fe82eb

Please sign in to comment.