Skip to content

Commit 7251fdf

Browse files
committed
3.8-compatible IntEnum membership check
1 parent 3f1da89 commit 7251fdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

temporalio/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6107,7 +6107,7 @@ def on_start(
61076107
),
61086108
None,
61096109
)
6110-
if status and status.code in RPCStatusCode:
6110+
if status and status.code in list(RPCStatusCode):
61116111
if status.code == RPCStatusCode.ALREADY_EXISTS:
61126112
details = temporalio.api.errordetails.v1.WorkflowExecutionAlreadyStartedFailure()
61136113
if status.details[0].Unpack(details):

0 commit comments

Comments
 (0)