Skip to content

Commit

Permalink
fix ActionObject.get_sync_dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
abyesilyurt committed Oct 1, 2024
1 parent e68ae99 commit 454ecbf
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions packages/syft/src/syft/service/action/action_object.py
Original file line number Diff line number Diff line change
Expand Up @@ -1171,16 +1171,11 @@ def syft_make_action_with_self(

def get_sync_dependencies(
self, context: AuthedServiceContext, **kwargs: dict
) -> list[UID]: # type: ignore
# relative
from ..job.job_stash import Job

job: Job | None = context.server.services.job.get_by_result_id(
context, self.id.id
) # type: ignore
if job is not None:
) -> list[UID]:
try:
job = context.server.services.job.get_by_result_id(context, self.id.id)
return [job.id]
else:
except SyftException:
return []

def syft_get_path(self) -> str:
Expand Down

0 comments on commit 454ecbf

Please sign in to comment.