Skip to content

Commit 61e0061

Browse files
committed
fix:pylint errors
1 parent c1cc56a commit 61e0061

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/sagemaker/async_inference/async_inference_response.py

+2-4
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,5 @@ def _get_result_from_s3(self, output_path, failure_path):
108108
raise ObjectNotExistedError(
109109
message="Inference could still be running", output_path=output_path
110110
)
111-
else:
112-
raise UnexpectedClientError(message=ex.response["Error"]["Message"])
113-
else:
114-
raise UnexpectedClientError(message=e.response["Error"]["Message"])
111+
raise UnexpectedClientError(message=ex.response["Error"]["Message"])
112+
raise UnexpectedClientError(message=e.response["Error"]["Message"])

tests/unit/sagemaker/inference_recommender/test_inference_recommender_mixin.py

+8-3
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,8 @@ def test_deploy_right_size_serverless_override(sagemaker_session, default_right_
650650
def test_deploy_right_size_async_override(sagemaker_session, default_right_sized_model):
651651
default_right_sized_model.name = MODEL_NAME
652652
async_inference_config = AsyncInferenceConfig(
653-
output_path="s3://some-path", failure_path="s3://some-failure-path")
653+
output_path="s3://some-path", failure_path="s3://some-failure-path"
654+
)
654655
default_right_sized_model.deploy(
655656
instance_type="ml.c5.2xlarge",
656657
initial_instance_count=1,
@@ -664,8 +665,12 @@ def test_deploy_right_size_async_override(sagemaker_session, default_right_sized
664665
kms_key=None,
665666
wait=True,
666667
data_capture_config_dict=None,
667-
async_inference_config_dict={"OutputConfig": {"S3OutputPath": "s3://some-path",
668-
"S3FailurePath": "s3://some-failure-path"}},
668+
async_inference_config_dict={
669+
"OutputConfig": {
670+
"S3OutputPath": "s3://some-path",
671+
"S3FailurePath": "s3://some-failure-path",
672+
}
673+
},
669674
explainer_config_dict=None,
670675
)
671676

0 commit comments

Comments
 (0)