Skip to content

Commit 2dfde22

Browse files
author
Payton Staub
committed
Add property check
1 parent dbddcc2 commit 2dfde22

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/sagemaker/workflow/steps.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,8 @@ def arguments(self) -> RequestType:
301301
)
302302
request_dict = self.estimator.sagemaker_session._get_train_request(**train_args)
303303
request_dict.pop("TrainingJobName")
304-
request_dict["HyperParameters"].pop("sagemaker_job_name", None)
304+
if "HyperParameters" in request_dict:
305+
request_dict["HyperParameters"].pop("sagemaker_job_name", None)
305306

306307
return request_dict
307308

0 commit comments

Comments
 (0)