Skip to content

Commit

Permalink
Check for _data attribute before accessing (#39035)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingernupur committed Jan 7, 2025
1 parent a731aa8 commit 8abbb67
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,8 @@ def _get_anonymous_hash(self) -> str:
for input_name, input_value in job.inputs.items():
try:
if (
isinstance(input_value._data, Input)
getattr(input_value, "_data", None)
and isinstance(input_value._data, Input)
and input_value.path
and os.path.exists(input_value.path)
):
Expand Down

0 comments on commit 8abbb67

Please sign in to comment.