Skip to content

Commit

Permalink
3.8-compatible IntEnum membership check
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Dec 19, 2024
1 parent 3f1da89 commit 7251fdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion temporalio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -6107,7 +6107,7 @@ def on_start(
),
None,
)
if status and status.code in RPCStatusCode:
if status and status.code in list(RPCStatusCode):
if status.code == RPCStatusCode.ALREADY_EXISTS:
details = temporalio.api.errordetails.v1.WorkflowExecutionAlreadyStartedFailure()
if status.details[0].Unpack(details):
Expand Down

0 comments on commit 7251fdf

Please sign in to comment.