Skip to content

Commit bf1b4dc

Browse files
committed
3.8-compatible IntEnum membership check
1 parent 896a097 commit bf1b4dc

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
@@ -6100,7 +6100,7 @@ def on_start(
61006100
),
61016101
None,
61026102
)
6103-
if status and status.code in RPCStatusCode:
6103+
if status and status.code in list(RPCStatusCode):
61046104
if status.code == RPCStatusCode.ALREADY_EXISTS:
61056105
details = temporalio.api.errordetails.v1.WorkflowExecutionAlreadyStartedFailure()
61066106
if status.details[0].Unpack(details):

0 commit comments

Comments
 (0)