Skip to content

Commit 554dd20

Browse files
committed
fix: typo
1 parent 9dbe3d6 commit 554dd20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sagemaker/jumpstart/curated_hub/curated_hub.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,13 +408,13 @@ def scan_and_tag_models(self, model_list: List[Dict[str, str]] = None) -> None:
408408
JUMPSTART_LOGGER.info(
409409
"Tagging models in hub: %s", self.hub_name
410410
)
411-
models_to_scan = model_list if model_list else self.list_models()
412411
if self._is_invalid_model_list_input(model_list):
413412
raise ValueError(
414413
"Model list should be a list of objects with values 'model_id',",
415414
"and optional 'version'.",
416415
)
417416

417+
models_to_scan = model_list if model_list else self.list_models()
418418
js_models_in_hub = [model for model in models_to_scan if get_jumpstart_model_and_version(model) is not None]
419419
tags_added: Dict[str, List[CuratedHubTag]] = {}
420420
for model in js_models_in_hub:

0 commit comments

Comments
 (0)