File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -6098,17 +6098,22 @@ def on_start(
6098
6098
st
6099
6099
for st in multiop_failure .statuses
6100
6100
if (
6101
- st .details
6102
- and not st .details [0 ].Is (
6103
- temporalio .api .failure .v1 .MultiOperationExecutionAborted .DESCRIPTOR
6101
+ st .code != RPCStatusCode .OK
6102
+ and not (
6103
+ st .details
6104
+ and st .details [0 ].Is (
6105
+ temporalio .api .failure .v1 .MultiOperationExecutionAborted .DESCRIPTOR
6106
+ )
6104
6107
)
6105
- and st .code != RPCStatusCode .OK
6106
6108
)
6107
6109
),
6108
6110
None ,
6109
6111
)
6110
6112
if status and status .code in list (RPCStatusCode ):
6111
- if status .code == RPCStatusCode .ALREADY_EXISTS :
6113
+ if (
6114
+ status .code == RPCStatusCode .ALREADY_EXISTS
6115
+ and status .details
6116
+ ):
6112
6117
details = temporalio .api .errordetails .v1 .WorkflowExecutionAlreadyStartedFailure ()
6113
6118
if status .details [0 ].Unpack (details ):
6114
6119
err = temporalio .exceptions .WorkflowAlreadyStartedError (
You can’t perform that action at this time.
0 commit comments