Skip to content

Commit

Permalink
fix get_attr _bool
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-milea committed May 22, 2024
1 parent c4666b3 commit d0eddb4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/syft/src/syft/service/response.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class SyftResponseMessage(SyftBaseModel):
require_api_update: bool = False

def __getattr__(self, name: str) -> Any:
if name == "_bool":
return super().__getattr__(name)
raise Exception(
f"You have tried accessing `{name}` on a {type(self).__name__} with message: {self.message}"
)
Expand Down

0 comments on commit d0eddb4

Please sign in to comment.