Skip to content

Commit 6a48dcc

Browse files
committed
chore: address formatting issues
1 parent a7beaa5 commit 6a48dcc

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/sagemaker/jumpstart/constants.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
import logging
1616
import os
1717
from typing import Dict, Set, Type
18+
import json
1819
import boto3
1920
from sagemaker.base_deserializers import BaseDeserializer, JSONDeserializer
2021
from sagemaker.jumpstart.enums import (
@@ -33,7 +34,6 @@
3334
JSONSerializer,
3435
)
3536
from sagemaker.session import Session
36-
import json
3737

3838

3939
JUMPSTART_LOGGER = logging.getLogger("sagemaker.jumpstart")
@@ -61,7 +61,8 @@
6161

6262
def _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

0 commit comments

Comments
 (0)