Skip to content

Commit 142a6ea

Browse files
committed
fix test
1 parent 331881e commit 142a6ea

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

packages/syft/src/syft/types/syft_object.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -432,13 +432,13 @@ def make_id(cls, values: Any) -> Any:
432432
def refresh(self) -> None:
433433
try:
434434
api = self._get_api()
435+
new_object = api.services.migration._get_object(
436+
uid=self.id, object_type=type(self)
437+
)
438+
if type(new_object) == type(self):
439+
self.__dict__.update(new_object.__dict__)
435440
except Exception as _:
436441
return
437-
new_object = api.services.migration._get_object(
438-
uid=self.id, object_type=type(self)
439-
)
440-
if type(new_object) == type(self):
441-
self.__dict__.update(new_object.__dict__)
442442

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

0 commit comments

Comments
 (0)