Skip to content

Commit

Permalink
Merge pull request #9105 from khoaguin/fix-pythonserver-attribute-error
Browse files Browse the repository at this point in the history
bugfix: AttributeError retrieving server.python_server
  • Loading branch information
khoaguin authored Aug 5, 2024
2 parents 1ebd845 + c09e0d3 commit a4742a4
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 a4742a4

Please sign in to comment.