From de41bd54c227e31e821baf51d585374721b5fbb4 Mon Sep 17 00:00:00 2001 From: Prashant Dhote <168401122+pdhotems@users.noreply.github.com> Date: Tue, 19 Nov 2024 18:10:34 +0530 Subject: [PATCH] remove error message when import azureml-mlflow fails (#38610) --- .../azure/ai/ml/entities/_workspace/workspace.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_workspace/workspace.py b/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_workspace/workspace.py index 8eae409a42d4..5152da6283f5 100644 --- a/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_workspace/workspace.py +++ b/sdk/ml/azure-ai-ml/azure/ai/ml/entities/_workspace/workspace.py @@ -350,12 +350,6 @@ def _from_rest_object( mlflow_tracking_uri = rest_obj.ml_flow_tracking_uri except ImportError: mlflow_tracking_uri = rest_obj.ml_flow_tracking_uri - error_msg = ( - "azureml.mlflow could not be imported. " - "Please ensure that latest 'azureml-mlflow' has been installed in the current python environment" - ) - print(error_msg) - # warnings.warn(error_msg, UserWarning) # TODO: Remove once Online Endpoints updates API version to at least 2023-08-01 allow_roleassignment_on_rg = None