Skip to content

Commit 76c5b00

Browse files
authored
Check for _data attribute before accessing (Azure#39035)
1 parent aa617ee commit 76c5b00

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sdk/ml/azure-ai-ml/azure/ai/ml/entities/_component/pipeline_component.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,8 @@ def _get_anonymous_hash(self) -> str:
345345
for input_name, input_value in job.inputs.items():
346346
try:
347347
if (
348-
isinstance(input_value._data, Input)
348+
getattr(input_value, "_data", None)
349+
and isinstance(input_value._data, Input)
349350
and input_value.path
350351
and os.path.exists(input_value.path)
351352
):

0 commit comments

Comments
 (0)