Skip to content

Commit 0fd7e34

Browse files
committed
Fix possible unbound variable
1 parent 6149bda commit 0fd7e34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

temporalio/client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6040,7 +6040,7 @@ def on_start(
60406040
input._on_start(start_response)
60416041
seen_start = True
60426042

6043-
err: BaseException
6043+
err: Optional[BaseException] = None
60446044

60456045
try:
60466046
return await self._start_workflow_update_with_start(
@@ -6093,7 +6093,7 @@ def on_start(
60936093

60946094
raise err
60956095
finally:
6096-
if not seen_start:
6096+
if err and not seen_start:
60976097
input._on_start_error(err)
60986098

60996099
async def _start_workflow_update_with_start(

0 commit comments

Comments
 (0)