File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -1154,10 +1154,11 @@ def processing_config(
1154
1154
)
1155
1155
config ["ProcessingResources" ] = processing_resources
1156
1156
1157
- stopping_condition = sagemaker .processing .ProcessingJob .prepare_stopping_condition (
1158
- processor .max_runtime_in_seconds
1159
- )
1160
- config ["StoppingCondition" ] = stopping_condition
1157
+ if processor .max_runtime_in_seconds is not None :
1158
+ stopping_condition = sagemaker .processing .ProcessingJob .prepare_stopping_condition (
1159
+ processor .max_runtime_in_seconds
1160
+ )
1161
+ config ["StoppingCondition" ] = stopping_condition
1161
1162
1162
1163
if processor .tags is not None :
1163
1164
config ["Tags" ] = processor .tags
@@ -1174,4 +1175,8 @@ def input_output_list_converter(object_list):
1174
1175
Returns:
1175
1176
List of dicts
1176
1177
"""
1177
- return [obj ._to_request_dict () for obj in object_list ]
1178
+ if object_list is not None :
1179
+ dict_list = [obj ._to_request_dict () for obj in object_list ]
1180
+ else :
1181
+ dict_list = object_list
1182
+ return dict_list
You can’t perform that action at this time.
0 commit comments