We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cdefb7c commit 3481da5Copy full SHA for 3481da5
src/sagemaker/lambda_helper.py
@@ -171,8 +171,7 @@ def upsert(self):
171
except ValueError as error:
172
if "ResourceConflictException" in str(error):
173
return self.update()
174
- else:
175
- raise
+ raise
176
177
def invoke(self):
178
"""Method to invoke a lambda function.
src/sagemaker/workflow/lambda_step.py
@@ -157,5 +157,4 @@ def _get_function_arn(self):
157
if self.lambda_func.function_arn is None:
158
response = self.lambda_func.upsert()
159
return response["FunctionArn"]
160
161
- return self.lambda_func.function_arn
+ return self.lambda_func.function_arn
0 commit comments