Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
teo-milea committed Oct 14, 2024
1 parent 331881e commit 142a6ea
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions packages/syft/src/syft/types/syft_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,13 +432,13 @@ def make_id(cls, values: Any) -> Any:
def refresh(self) -> None:
try:
api = self._get_api()
new_object = api.services.migration._get_object(
uid=self.id, object_type=type(self)
)
if type(new_object) == type(self):
self.__dict__.update(new_object.__dict__)
except Exception as _:
return
new_object = api.services.migration._get_object(
uid=self.id, object_type=type(self)
)
if type(new_object) == type(self):
self.__dict__.update(new_object.__dict__)

def __syft_get_funcs__(self) -> list[tuple[str, Signature]]:
funcs = print_type_cache[type(self)]
Expand Down

0 comments on commit 142a6ea

Please sign in to comment.