Skip to content

Commit

Permalink
asset.data displays error instead of a warning
Browse files Browse the repository at this point in the history
  • Loading branch information
abyesilyurt committed Jul 19, 2024
1 parent 8413d45 commit 468a618
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/syft/src/syft/service/dataset/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def data(self) -> Any:
if self.has_permission(res):
return res.syft_action_data
else:
warning = SyftWarning(
warning = SyftError(
message="You do not have permission to access private data."
)
display(warning)
Expand Down

0 comments on commit 468a618

Please sign in to comment.