Skip to content

Commit

Permalink
Fix possible unbound variable
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Dec 18, 2024
1 parent 6149bda commit 0fd7e34
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions temporalio/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -6040,7 +6040,7 @@ def on_start(
input._on_start(start_response)
seen_start = True

err: BaseException
err: Optional[BaseException] = None

try:
return await self._start_workflow_update_with_start(
Expand Down Expand Up @@ -6093,7 +6093,7 @@ def on_start(

raise err
finally:
if not seen_start:
if err and not seen_start:
input._on_start_error(err)

async def _start_workflow_update_with_start(
Expand Down

0 comments on commit 0fd7e34

Please sign in to comment.