Skip to content

Commit 5166162

Browse files
committed
fix:pylint errors
1 parent 2bdcbc7 commit 5166162

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

src/sagemaker/async_inference/async_inference_response.py

Lines changed: 2 additions & 4 deletions
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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -645,7 +645,8 @@ def test_deploy_right_size_serverless_override(sagemaker_session, default_right_
645645
def test_deploy_right_size_async_override(sagemaker_session, default_right_sized_model):
646646
default_right_sized_model.name = MODEL_NAME
647647
async_inference_config = AsyncInferenceConfig(
648-
output_path="s3://some-path", failure_path="s3://some-failure-path")
648+
output_path="s3://some-path", failure_path="s3://some-failure-path"
649+
)
649650
default_right_sized_model.deploy(
650651
instance_type="ml.c5.2xlarge",
651652
initial_instance_count=1,
@@ -659,8 +660,12 @@ def test_deploy_right_size_async_override(sagemaker_session, default_right_sized
659660
kms_key=None,
660661
wait=True,
661662
data_capture_config_dict=None,
662-
async_inference_config_dict={"OutputConfig": {"S3OutputPath": "s3://some-path",
663-
"S3FailurePath": "s3://some-failure-path"}},
663+
async_inference_config_dict={
664+
"OutputConfig": {
665+
"S3OutputPath": "s3://some-path",
666+
"S3FailurePath": "s3://some-failure-path",
667+
}
668+
},
664669
)
665670

666671

0 commit comments

Comments
 (0)