File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 1515import logging
1616import os
1717from typing import Dict , Set , Type
18+ import json
1819import boto3
1920from sagemaker .base_deserializers import BaseDeserializer , JSONDeserializer
2021from sagemaker .jumpstart .enums import (
3334 JSONSerializer ,
3435)
3536from sagemaker .session import Session
36- import json
3737
3838
3939JUMPSTART_LOGGER = logging .getLogger ("sagemaker.jumpstart" )
6161
6262def _load_region_config (filepath : str ) -> Set [JumpStartLaunchedRegionInfo ]:
6363 """Load the JumpStart region config from a JSON file."""
64- JUMPSTART_LOGGER .debug (f"Loading JumpStart region config from '{ filepath } '." )
64+ debug_msg = f"Loading JumpStart region config from '{ filepath } '."
65+ JUMPSTART_LOGGER .debug (debug_msg )
6566 try :
6667 with open (filepath ) as f :
6768 config = json .load (f )
@@ -75,7 +76,7 @@ def _load_region_config(filepath: str) -> Set[JumpStartLaunchedRegionInfo]:
7576 )
7677 for region , data in config .items ()
7778 }
78- except Exception :
79+ except Exception : # pylint: disable=W0703
7980 JUMPSTART_LOGGER .error ("Unable to load JumpStart region config." , exc_info = True )
8081 return set ()
8182
You can’t perform that action at this time.
0 commit comments