diff --git a/notebooks/tutorials/model-training/01-data-scientist-submit-code.ipynb b/notebooks/tutorials/model-training/01-data-scientist-submit-code.ipynb index 6063d233753..13e52c83015 100644 --- a/notebooks/tutorials/model-training/01-data-scientist-submit-code.ipynb +++ b/notebooks/tutorials/model-training/01-data-scientist-submit-code.ipynb @@ -4,7 +4,9 @@ "cell_type": "code", "execution_count": null, "id": "0", - "metadata": {}, + "metadata": { + "metadata": {} + }, "outputs": [], "source": [ "# third party\n", @@ -27,7 +29,9 @@ "cell_type": "code", "execution_count": null, "id": "2", - "metadata": {}, + "metadata": { + "metadata": {} + }, "outputs": [], "source": [ "server = sy.orchestra.launch(name=\"mnist-torch-datasite\", dev_mode=True)\n", @@ -46,7 +50,9 @@ "cell_type": "code", "execution_count": null, "id": "4", - "metadata": {}, + "metadata": { + "metadata": {} + }, "outputs": [], "source": [ "datasets = ds_client.datasets.get_all()\n", @@ -103,7 +109,7 @@ "metadata": {}, "outputs": [], "source": [ - "assert isinstance(training_images.data, sy.SyftError)\n", + "assert training_images.data is None\n", "training_labels.data" ] }, diff --git a/packages/syft/src/syft/service/dataset/dataset.py b/packages/syft/src/syft/service/dataset/dataset.py index 5ab3eb1411b..db5fe2f482f 100644 --- a/packages/syft/src/syft/service/dataset/dataset.py +++ b/packages/syft/src/syft/service/dataset/dataset.py @@ -289,8 +289,6 @@ def data(self) -> Any: if api is None or api.services is None: return None res = api.services.action.get(self.action_id) - if isinstance(res, str): - return SyftError(message=f"Could not access private data. {str(res)}") if self.has_permission(res): return res.syft_action_data else: diff --git a/tests/integration/network/gateway_test.py b/tests/integration/network/gateway_test.py index 39ddc0bad5d..fd4b9751c42 100644 --- a/tests/integration/network/gateway_test.py +++ b/tests/integration/network/gateway_test.py @@ -222,7 +222,7 @@ def test_dataset_search(set_env_var, gateway_port: int, datasite_1_port: int) -> assert isinstance(dataset, Dataset) assert len(dataset.assets) == 1 assert isinstance(dataset.assets[0].mock, np.ndarray) - assert isinstance(dataset.assets[0].data, SyftError) + assert dataset.assets[0].data is None # search a wrong dataset should return an empty list wrong_search = sy.search(_random_hash())