SFN - fix InvalidARN exception on start_execution (#3007)
This commit is contained in:
parent
2320e82647
commit
93feeec1b7
2 changed files with 23 additions and 2 deletions
|
|
@ -95,7 +95,10 @@ class StepFunctionResponse(BaseResponse):
|
|||
def start_execution(self):
|
||||
arn = self._get_param("stateMachineArn")
|
||||
name = self._get_param("name")
|
||||
execution = self.stepfunction_backend.start_execution(arn, name)
|
||||
try:
|
||||
execution = self.stepfunction_backend.start_execution(arn, name)
|
||||
except AWSError as err:
|
||||
return err.response()
|
||||
response = {
|
||||
"executionArn": execution.execution_arn,
|
||||
"startDate": execution.start_date,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue