Skip to content

Commit 6fefdbf

Browse files
nargokuljiapinw
authored andcommitted
Fix: AttributeError: 'NoneType' object has no attribute 'len' error in session.py (aws#4735)
* fix - Address Dependapot issues * fix -Update MLFLOW Version * fix - Update fetching Length for NoneType Error
1 parent 99cbe92 commit 6fefdbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sagemaker/session.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -4736,7 +4736,7 @@ def create_inference_component(
47364736
tags = self._append_sagemaker_config_tags(
47374737
tags, "{}.{}.{}".format(SAGEMAKER, INFERENCE_COMPONENT, TAGS)
47384738
)
4739-
if len(tags) != 0:
4739+
if tags and len(tags) != 0:
47404740
request["Tags"] = tags
47414741

47424742
self.sagemaker_client.create_inference_component(**request)

0 commit comments

Comments
 (0)