From d0eddb4f3b9e5b265183a055f07e8f1b49040c82 Mon Sep 17 00:00:00 2001 From: teo Date: Wed, 22 May 2024 12:28:26 +0300 Subject: [PATCH] fix get_attr _bool --- packages/syft/src/syft/service/response.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/syft/src/syft/service/response.py b/packages/syft/src/syft/service/response.py index 9927bf67e9b..69e4b02c836 100644 --- a/packages/syft/src/syft/service/response.py +++ b/packages/syft/src/syft/service/response.py @@ -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}" )