From 468a6185ac28dd7f4363d57863a1a66bb3ba49da Mon Sep 17 00:00:00 2001 From: Aziz Berkay Yesilyurt Date: Fri, 19 Jul 2024 11:30:26 +0200 Subject: [PATCH] asset.data displays error instead of a warning --- packages/syft/src/syft/service/dataset/dataset.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/syft/src/syft/service/dataset/dataset.py b/packages/syft/src/syft/service/dataset/dataset.py index db5fe2f482f..58329a06611 100644 --- a/packages/syft/src/syft/service/dataset/dataset.py +++ b/packages/syft/src/syft/service/dataset/dataset.py @@ -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)